[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.

llvm-svn: 309460

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

index 9be0523..13f9701 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);
 }