From: Vedant Kumar Date: Sat, 29 Jul 2017 00:19:52 +0000 (+0000) Subject: [test] FileCheck-ify a test to avoid a spurious failure, NFC X-Git-Tag: llvmorg-6.0.0-rc1~11447 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6dc0f5b9471ba20f27d0703ab729bbf6aafacc38;p=platform%2Fupstream%2Fllvm.git [test] FileCheck-ify a test to avoid a spurious failure, NFC The path to one of my source trees contains 'builtin' as a substring, so this test failed. Fix it with FileCheck. llvm-svn: 309460 --- diff --git a/clang/test/CodeGen/2004-02-20-Builtins.c b/clang/test/CodeGen/2004-02-20-Builtins.c index 9be0523..13f9701 100644 --- a/clang/test/CodeGen/2004-02-20-Builtins.c +++ b/clang/test/CodeGen/2004-02-20-Builtins.c @@ -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); }