diff options
Diffstat (limited to 'test/ASTMerge/asm')
-rw-r--r-- | test/ASTMerge/asm/Inputs/asm-function.cpp | 21 | ||||
-rw-r--r-- | test/ASTMerge/asm/test.cpp | 8 |
2 files changed, 0 insertions, 29 deletions
diff --git a/test/ASTMerge/asm/Inputs/asm-function.cpp b/test/ASTMerge/asm/Inputs/asm-function.cpp deleted file mode 100644 index 1b8783354f..0000000000 --- a/test/ASTMerge/asm/Inputs/asm-function.cpp +++ /dev/null @@ -1,21 +0,0 @@ - -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; -} - -int asmFunc2(int i) { - int res; - asm ("mov %1, %0 \t\n" - "inc %0 " - : "=r" (res) - : "r" (i) - : "cc"); - return res; -} diff --git a/test/ASTMerge/asm/test.cpp b/test/ASTMerge/asm/test.cpp deleted file mode 100644 index 8c3bdfe17b..0000000000 --- a/test/ASTMerge/asm/test.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// RUN: %clang_cc1 -triple i386-unknown-unknown -fcxx-exceptions -emit-pch -o %t.1.ast %S/Inputs/asm-function.cpp -// RUN: %clang_cc1 -triple i386-unknown-unknown -fcxx-exceptions -ast-merge %t.1.ast -fsyntax-only -verify %s -// expected-no-diagnostics - -void testAsmImport() { - asmFunc(12, 42); - asmFunc2(42); -} |