diff options
author | Anders Carlsson <andersca@mac.com> | 2008-02-09 19:57:29 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-02-09 19:57:29 +0000 |
commit | 2e64d1a50f87610e458bd967a0d3ab56e90f1be8 (patch) | |
tree | b2eed432b814f367cc0c6db3a63ecb5b1b10586d /clang/test/Parser/asm.c | |
parent | 43a2ed86115b0f699e62cae4723cd57e189832da (diff) | |
download | bcm5719-llvm-2e64d1a50f87610e458bd967a0d3ab56e90f1be8.tar.gz bcm5719-llvm-2e64d1a50f87610e458bd967a0d3ab56e90f1be8.zip |
Behave correctly if a constraint expression is invalid.
llvm-svn: 46910
Diffstat (limited to 'clang/test/Parser/asm.c')
-rw-r--r-- | clang/test/Parser/asm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Parser/asm.c b/clang/test/Parser/asm.c index a09b545a8e0..6a19acaaed6 100644 --- a/clang/test/Parser/asm.c +++ b/clang/test/Parser/asm.c @@ -3,3 +3,8 @@ void f1() { asm ("ret" : : :); // expected-error {{expected string literal}} } + +void f2() { + asm("foo" : "=r" (a)); // expected-error {{use of undeclared identifier 'a'}} + asm("foo" : : "r" (b)); // expected-error {{use of undeclared identifier 'b'}} +} |