]> granicus.if.org Git - clang/commitdiff
[test] FileCheck-ify a test to avoid a spurious failure, NFC
authorVedant Kumar <vsk@apple.com>
Sat, 29 Jul 2017 00:19:52 +0000 (00:19 +0000)
committerVedant Kumar <vsk@apple.com>
Sat, 29 Jul 2017 00:19:52 +0000 (00:19 +0000)
The path to one of my source trees contains 'builtin' as a substring, so
this test failed. Fix it with FileCheck.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309460 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/2004-02-20-Builtins.c

index 9be0523b4afd8b438f6e18fc48d10ed9710bac99..13f970127d606ad9fc0429f2975f8b98a7a51d3e 100644 (file)
@@ -1,5 +1,8 @@
-// RUN: %clang_cc1  %s -emit-llvm -o - | not grep builtin
+// RUN: %clang_cc1  %s -emit-llvm -o - | FileCheck %s
 double sqrt(double x);
+
+// CHECK-LABEL: @zsqrtxxx
+// CHECK-NOT: builtin
 void zsqrtxxx(float num) {
    num = sqrt(num);
 }