diff options
author | John McCall <rjmccall@apple.com> | 2010-01-25 22:27:48 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-01-25 22:27:48 +0000 |
commit | 9dfb16210eeabe75970965aa2209b312a246fc31 (patch) | |
tree | 1972c0ae006c17ed88eba5a54e722fe43717f9c7 /clang/test/Sema | |
parent | ab2b1a7aebdbd5d4b3b7301681855cacd8952ad2 (diff) | |
download | bcm5719-llvm-9dfb16210eeabe75970965aa2209b312a246fc31.tar.gz bcm5719-llvm-9dfb16210eeabe75970965aa2209b312a246fc31.zip |
Warn on top-level 'asm volatile' (instead of misparsing it).
"Fixes" rdar://problem/7574870
llvm-svn: 94458
Diffstat (limited to 'clang/test/Sema')
-rw-r--r-- | clang/test/Sema/asm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/asm.c b/clang/test/Sema/asm.c index 18d900c80dd..6f2272da9e7 100644 --- a/clang/test/Sema/asm.c +++ b/clang/test/Sema/asm.c @@ -76,3 +76,6 @@ int test7(unsigned long long b) { asm volatile("foo %0 %1" : "=a" (a) :"0" (b)); // expected-error {{input with type 'unsigned long long' matching output with type 'int'}} return a; } + +// <rdar://problem/7574870> +asm volatile (""); // expected-warning {{meaningless 'volatile' on asm outside function}} |