]> granicus.if.org Git - clang/commitdiff
Use -target instead of triple and use FileCheck.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 27 Oct 2013 13:59:51 +0000 (13:59 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 27 Oct 2013 13:59:51 +0000 (13:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193502 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/noexecstack.c

index 1f4772882654eff661327767934c4049fcec736e..5970713c165420b6683755b72365e644f38fc8fc 100644 (file)
@@ -1 +1,3 @@
-// RUN: %clang -### %s -c -o tmp.o -triple i686-pc-linux-gnu -integrated-as -Wa,--noexecstack 2>&1 | grep "mnoexecstack"
+// RUN: %clang -### %s -c -o tmp.o -target i686-pc-linux-gnu -integrated-as -Wa,--noexecstack 2>&1 | FileCheck %s
+
+// CHECK: "-cc1" {{.*}} "-mnoexecstack"