Skip to content

Commit d1e1049

Browse files
committed
[clang-repl] add test for inline asm
Signed-off-by: Andrew V. Teylu <[email protected]>
1 parent 480d77e commit d1e1049

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

clang/test/Interpreter/inline-asm.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// REQUIRES: host-supports-jit, x86_64-linux
2+
// UNSUPPORTED: system-aix
3+
//
4+
// RUN: rm -rf %t
5+
// RUN: mkdir -p %t
6+
// RUN: split-file %s %t
7+
//
8+
// RUN: cat %t/inline-asm.txt | clang-repl -Xcc="-I%t"
9+
10+
//--- inline-asm.cpp
11+
__asm(".globl _ZSt21ios_base_library_initv");
12+
int x;
13+
14+
//--- inline-asm.txt
15+
#include "inline-asm.cpp"
16+
x = 10;
17+
%quit

0 commit comments

Comments
 (0)