mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 04:31:36 +00:00
PR: PR23931 Differential Revision: http://reviews.llvm.org/D10752 Reviewed by: rsmith llvm-svn: 240889
6 lines
137 B
C++
6 lines
137 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
union x {
|
|
virtual void f(); // expected-error {{unions cannot have virtual functions}}
|
|
};
|