================
@@ -19,64 +19,64 @@
#line 00 // expected-warning {{#line directive with zero argument
is a GNU extension}}
#line 2147483648 // expected-warning {{C requires #line number to be less
than 2147483648, allowed as extension}}
#line 42 // ok
-#line 42 'a' // expected-error {{invalid filename for #line directive}}
-#line 42 "foo/bar/baz.h" // ok
+#line 44 'a' // expected-error {{invalid filename for #line directive}}
+#line 46 "foo/bar/baz.h" // ok
// #line directives expand macros.
-#define A 42 "foo"
+#define A 54 "foo"
#line A
-# 42 // expected-warning {{this style of line directive is a GNU extension}}
-# 42 "foo" // expected-warning {{this style of line directive is a GNU
extension}}
-# 42 "foo" 2 // expected-error {{invalid line marker flag '2': cannot pop
empty include stack}}
+# 60 // expected-warning {{this style of line directive is a GNU extension}}
+# 62 "foo" // expected-warning {{this style of line directive is a GNU
extension}}
+# 64 "foo" 2 // expected-error {{invalid line marker flag '2': cannot pop
empty include stack}}
// The next two lines do not get diagnosed because they are considered to be
// within the system header, where diagnostics are suppressed.
-# 42 "foo" 1 3 // enter
-# 42 "foo" 2 3 // exit
-# 42 "foo" 2 3 4 // expected-error {{invalid line marker flag '2': cannot pop
empty include stack}}
-# 42 "foo" 3 4 // expected-warning {{this style of line directive is a GNU
extension}}
+# 70 "foo" 1 3 // enter expected-warning {{this style of line directive is a
GNU extension}}
+# 72 "foo" 2 3 // exit
+# 74 "foo" 2 3 4 // expected-error {{invalid line marker flag '2': cannot pop
empty include stack}}
+# 76 "foo" 3 4
# 'a' // expected-error {{invalid preprocessing directive}}
-# 42 'f' // expected-error {{invalid filename for line marker
directive}}
-# 42 1 3 // expected-error {{invalid filename for line marker
directive}}
-# 42 "foo" 3 1 // expected-error {{invalid flag line marker directive}}
-# 42 "foo" 42 // expected-error {{invalid flag line marker directive}}
-# 42 "foo" 1 2 // expected-error {{invalid flag line marker directive}}
-# 42a33 // expected-error {{GNU line marker directive requires a
simple digit sequence}}
+# 82 'f' // expected-error {{invalid filename for line marker
directive}}
+# 84 1 3 // expected-error {{invalid filename for line marker
directive}}
+# 86 "foo" 3 1 // expected-error {{invalid flag line marker directive}}
+# 88 "foo" 42 // expected-error {{invalid flag line marker directive}}
+# 90 "foo" 1 2 // expected-error {{invalid flag line marker directive}}
+# 92a33 // expected-error {{GNU line marker directive requires a
simple digit sequence}}
// These are checked by the RUN line.
-#line 92 "blonk.c"
+#line 98 "blonk.c"
#error ABC
#error DEF
// expected-error@-2 {{ABC}}
-#line 150
+#line 106
// expected-error@-3 {{DEF}}
// Verify that linemarker diddling of the system header flag works.
-
-# 192 "glomp.h" // not a system header.: expected-warning {{this style of line
directive is a GNU extension}}
+# 116 "" 3 4
+# 118 "glomp.h" // in a system header.
typedef int x; // expected-note {{previous definition is here}}
typedef int x; // expected-warning {{redefinition of typedef 'x' is a C11
feature}}
-# 192 "glomp.h" 3 // System header.
+# 126 "glomp.h" 3 // not in a system header. expected-warning {{this style of
line directive is a GNU extension}}
----------------
ChenMiaoi wrote:
not a in a system header
https://github.com/llvm/llvm-project/pull/234270
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits