Skip to content

Commit c956ea1

Browse files
committed
fixup! [clang] Suppress gnu-line-marker when saving temps
1 parent d78c113 commit c956ea1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
// RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic %s 2>&1 | grep 'warning: this style of line directive is a GNU extension'
1+
// RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic %s 2>&1 | FileCheck %s
22

3-
// RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic -x c-cpp-output %s 2>&1 | not grep warning
43
// RUN: cp %s %t.i
5-
// RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic %t.i 2>&1 | not grep warning
4+
// RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic %t.i 2>&1 | FileCheck %s --check-prefix=NO-WARNING --allow-empty
5+
// RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic -x cpp-output %s 2>&1 | FileCheck %s --check-prefix=NO-WARNING --allow-empty
66

77
# 0 "zero"
8+
// CHECK: line-directive-suppressed.c:[[@LINE-1]]:5: warning: {{.*}} [-Wgnu-line-marker]
9+
810
# 1 "one" 1
11+
// CHECK: zero:2:5: warning: {{.*}} [-Wgnu-line-marker]
12+
913
# 2 "two" 1 3 4
14+
// CHECK: one:3:5: warning: {{.*}} [-Wgnu-line-marker]
15+
16+
// NO-WARNING-NOT: warning:

0 commit comments

Comments
 (0)