diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-12-02 00:35:46 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-12-02 00:35:46 +0000 |
commit | 65cdbf58a7dc562b184fd70b3126717662bab607 (patch) | |
tree | 05532a6ace619c7f9e02f11285715317e8b2f625 /clang/test/Parser/asm.c | |
parent | 04945c42c6407802ff446310342d6add749658c3 (diff) | |
download | bcm5719-llvm-65cdbf58a7dc562b184fd70b3126717662bab607.tar.gz bcm5719-llvm-65cdbf58a7dc562b184fd70b3126717662bab607.zip |
Diagnose use of wide string literal in 'asm' instead of crashing. Fixes <rdar://problem/10465079>.
llvm-svn: 145656
Diffstat (limited to 'clang/test/Parser/asm.c')
-rw-r--r-- | clang/test/Parser/asm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Parser/asm.c b/clang/test/Parser/asm.c index 90818261513..23052c389eb 100644 --- a/clang/test/Parser/asm.c +++ b/clang/test/Parser/asm.c @@ -14,3 +14,6 @@ void f2() { // rdar://5952468 __asm ; // expected-error {{expected '(' after 'asm'}} +// <rdar://problem/10465079> - Don't crash on wide string literals in 'asm'. +int foo asm (L"bar"); // expected-error {{cannot use wide string literal in 'asm'}} + |