diff options
author | Chris Lattner <sabre@nondot.org> | 2008-07-23 06:46:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-07-23 06:46:56 +0000 |
commit | 070968957eefb98ec795c286de63a196a3798aeb (patch) | |
tree | 62c38c3e92d2827481ab5124a6588b9a28e34561 /clang/test/Sema/asm.c | |
parent | d258325c2bd49c2058088f47afa48df322e9145a (diff) | |
download | bcm5719-llvm-070968957eefb98ec795c286de63a196a3798aeb.tar.gz bcm5719-llvm-070968957eefb98ec795c286de63a196a3798aeb.zip |
Fix rdar://6094010 various asserts happening with wide strings in inline asm.
llvm-svn: 53947
Diffstat (limited to 'clang/test/Sema/asm.c')
-rw-r--r-- | clang/test/Sema/asm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Sema/asm.c b/clang/test/Sema/asm.c index 360af015ce8..d29335a924f 100644 --- a/clang/test/Sema/asm.c +++ b/clang/test/Sema/asm.c @@ -25,3 +25,11 @@ clobbers() asm ("nop" : : : "-1"); // expected-error {{unknown register name '-1' in asm}} asm ("nop" : : : "+1"); // expected-error {{unknown register name '+1' in asm}} } + +// rdar://6094010 +void test3() { + int x; + asm(L"foo" : "=r"(x)); // expected-error {{wide string}} + asm("foo" : L"=r"(x)); // expected-error {{wide string}} +} + |