diff options
author | Anders Carlsson <andersca@mac.com> | 2007-11-21 23:27:34 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2007-11-21 23:27:34 +0000 |
commit | 091a059c55c99f144c3935f6d20d08a3ff5d10ab (patch) | |
tree | 9fa47995ebfaf0e1a3695029798e2417220270cf /clang/test/Parser/asm.c | |
parent | 738fa17c4e9a2360f748561b54c36dcf08c2faff (diff) | |
download | bcm5719-llvm-091a059c55c99f144c3935f6d20d08a3ff5d10ab.tar.gz bcm5719-llvm-091a059c55c99f144c3935f6d20d08a3ff5d10ab.zip |
GCC fails if there is a trailing colon but no clobbers.
llvm-svn: 44265
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 new file mode 100644 index 00000000000..a09b545a8e0 --- /dev/null +++ b/clang/test/Parser/asm.c @@ -0,0 +1,5 @@ +// RUN: clang -fsyntax-only -verify %s + +void f1() { + asm ("ret" : : :); // expected-error {{expected string literal}} +} |