summaryrefslogtreecommitdiffstats
path: root/clang/test/ASTMerge/Inputs/asm-function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/ASTMerge/Inputs/asm-function.cpp')
-rw-r--r--clang/test/ASTMerge/Inputs/asm-function.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/ASTMerge/Inputs/asm-function.cpp b/clang/test/ASTMerge/Inputs/asm-function.cpp
new file mode 100644
index 00000000000..59c4edfbcd2
--- /dev/null
+++ b/clang/test/ASTMerge/Inputs/asm-function.cpp
@@ -0,0 +1,11 @@
+
+unsigned char asmFunc(unsigned char a, unsigned char b) {
+ unsigned int la = a;
+ unsigned int lb = b;
+ unsigned int bigres;
+ unsigned char res;
+ __asm__ ("0:\n1:\n" : [bigres] "=la"(bigres) : [la] "0"(la), [lb] "c"(lb) :
+ "edx", "cc");
+ res = bigres;
+ return res;
+}
OpenPOWER on IntegriCloud