aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/asm-errors.c
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-04-06 19:58:07 +0000
committerTim Northover <tnorthover@apple.com>2016-04-06 19:58:07 +0000
commit1390b4479efe62862f2dc878e19bccbf8168e1ca (patch)
treede033dfbf4bcc60e71c28a8796a99dbf329080bc /clang/test/CodeGen/asm-errors.c
parent6cc488004d17f5f363d98332442d1be3598798f3 (diff)
downloadllvm-1390b4479efe62862f2dc878e19bccbf8168e1ca.zip
llvm-1390b4479efe62862f2dc878e19bccbf8168e1ca.tar.gz
llvm-1390b4479efe62862f2dc878e19bccbf8168e1ca.tar.bz2
Restore slightly less dodgy diagnostic handler for inline asm
Turns out it was there mostly to prevent Clang asking people to report a bug. This time we report something to Clang's real diagnostics handler so that it exits with something approximating a real error and tidies up after itself. llvm-svn: 265592
Diffstat (limited to 'clang/test/CodeGen/asm-errors.c')
-rw-r--r--clang/test/CodeGen/asm-errors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/asm-errors.c b/clang/test/CodeGen/asm-errors.c
index 7edce64..a959896 100644
--- a/clang/test/CodeGen/asm-errors.c
+++ b/clang/test/CodeGen/asm-errors.c
@@ -2,11 +2,11 @@
// RUN: not %clang_cc1 -triple i386-apple-darwin10 -emit-obj %s -o /dev/null > %t 2>&1
// RUN: FileCheck %s < %t
-// RUN: %clang_cc1 -triple i386-apple-darwin10 -emit-llvm-bc %s -o %t.bc
-// RUN: not %clang_cc1 -triple i386-apple-darwin10 -emit-obj %t.bc -o /dev/null 2>&1 | \
+// RUN: not %clang -target i386-apple-darwin10 -fembed-bitcode -c %s -o /dev/null 2>&1 | \
// RUN: FileCheck --check-prefix=CRASH-REPORT %s
// CRASH-REPORT: <inline asm>:
// CRASH-REPORT: error: invalid instruction mnemonic 'abc'
+// CRASH-REPORT: error: cannot compile inline asm
// CRASH-REPORT-NOT: note: diagnostic msg:
int test1(int X) {