inheritance in C++. It'll parse the base-specifier list, e.g.,
class D : public B1, virtual public B2 { };
and do some of the simpler semantic checks (B1 and B2 are classes;
they aren't unions or incomplete types, etc).
llvm-svn: 49623
12 lines
271 B
C
12 lines
271 B
C
// RUN: clang %s -fsyntax-only -verify
|
|
|
|
typedef union <anonymous> __mbstate_t; // expected-error: {{declaration of anonymous union must be a definition}}
|
|
|
|
|
|
// PR2017
|
|
void x();
|
|
int a() {
|
|
int r[x()]; // expected-error: {{size of array has non-integer type 'void'}}
|
|
}
|
|
|