diff options
Diffstat (limited to 'clang/test/CodeGenCXX/gnu-asm-constexpr.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/gnu-asm-constexpr.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/gnu-asm-constexpr.cpp b/clang/test/CodeGenCXX/gnu-asm-constexpr.cpp index d9c633ea6928..175a3b7bc588 100644 --- a/clang/test/CodeGenCXX/gnu-asm-constexpr.cpp +++ b/clang/test/CodeGenCXX/gnu-asm-constexpr.cpp @@ -16,6 +16,12 @@ struct string_view { } }; +namespace GH143242 { + constexpr string_view code2 = R"(nop; nop; nop; nop)"; + asm((code2)); + // CHECK: module asm "nop; nop; nop; nop" +} + int func() {return 0;}; void f() { @@ -49,4 +55,4 @@ void test_srcloc() { foobar)o") ) ::(string_view("r"))(func())); - } +} |
