diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-04-13 21:30:24 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-04-13 21:30:24 +0000 |
commit | 556877c1e677a33052662a1879616129fa11559e (patch) | |
tree | c3e8933deb10c3cd6e86bc0596c2b0f567c4cab2 /clang/test/Sema/decl-invalid.c | |
parent | 83a586ec19dd0db7fe4bc3b8e881173ae07f74f4 (diff) | |
download | bcm5719-llvm-556877c1e677a33052662a1879616129fa11559e.tar.gz bcm5719-llvm-556877c1e677a33052662a1879616129fa11559e.zip |
This patch adds very basic support for parsing and type-checking class
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
Diffstat (limited to 'clang/test/Sema/decl-invalid.c')
-rw-r--r-- | clang/test/Sema/decl-invalid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/decl-invalid.c b/clang/test/Sema/decl-invalid.c index 281e8a8d5c0..b92146260ef 100644 --- a/clang/test/Sema/decl-invalid.c +++ b/clang/test/Sema/decl-invalid.c @@ -1,6 +1,6 @@ // RUN: clang %s -fsyntax-only -verify -typedef union <anonymous> __mbstate_t; // expected-error: {{expected identifier or}} +typedef union <anonymous> __mbstate_t; // expected-error: {{declaration of anonymous union must be a definition}} // PR2017 |