clang/test/Interpreter/inline-asm.cpp
raw| 1 | // REQUIRES: host-supports-jit, x86_64-linux |
| 2 | // |
| 3 | // RUN: rm -rf %t |
| 4 | // RUN: mkdir -p %t |
| 5 | // RUN: split-file %s %t |
| 6 | // |
| 7 | // RUN: cat %t/inline-asm.txt | clang-repl -Xcc="-I%t" |
| 8 | |
| 9 | //--- inline-asm.cpp |
| 10 | __asm(".globl _ZSt21ios_base_library_initv"); |
| 11 | int x; |
| 12 | |
| 13 | //--- inline-asm.txt |
| 14 | #include "inline-asm.cpp" |
| 15 | x = 10; |
| 16 | %quit |