diff options
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Sema/decl-invalid.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Sema/decl-invalid.c b/clang/test/Sema/decl-invalid.c index e14bc9891a4..051f0f7ffbc 100644 --- a/clang/test/Sema/decl-invalid.c +++ b/clang/test/Sema/decl-invalid.c @@ -20,3 +20,10 @@ const int; // expected-error {{declaration does not declare anything}} struct; // expected-error {{declaration of anonymous struct must be a definition}} // expected-error {{declaration does not declare anything}} typedef int I; I; // expected-error {{declaration does not declare anything}} + + + +// rdar://6880449 +register int test1; // expected-error {{illegal storage class on file-scoped variable}} +register int test2 __asm__("edi"); // expected-error {{global register variables are not supported}} + |

