]> granicus.if.org Git - clang/commitdiff
Prepare tests for change to emit Module SourceFileName to LLVM assembly
authorTeresa Johnson <tejohnson@google.com>
Wed, 30 Mar 2016 13:59:49 +0000 (13:59 +0000)
committerTeresa Johnson <tejohnson@google.com>
Wed, 30 Mar 2016 13:59:49 +0000 (13:59 +0000)
Modify these tests to ignore the source file name when looking for the
expected string. It was already catching the source file name once via
the ModuleID, and will catch it another time with an impending change to
LLVM to serialize out the module's SourceFileName.

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

test/CodeGen/sret.c
test/CodeGen/sret2.c

index 5f0d07404a169e9c9bb5ecbc5d836637d77ff77e..201e3b87f8b9432eb554b5aa06e733f9c3dec132 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | count 5
+// RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | grep -v 'sret.c' | count 4
 
 struct abc {
  long a;
index d103d87610fd8bc42cdd2ff2a40f597c6a8436dc..0e254ed914a489f1c288afbbfdae0b6ece5449c9 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | count 2
+// RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | grep -v 'sret2.c' | count 1
 
 struct abc {
  long a;