clang -E produces output that clang doesn't like #10233
Labels
bugzilla
Issues migrated from bugzilla
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
Extended Description
$ cat foobar.c
#include "foobar.h"
$ cat foobar.h
#pragma GCC system_header
$ clang -c foobar.c
$ gcc -c foobar.c
$ gcc -c foobar.c -save-temps
$ cat foobar.i
1 "foobar.c"
1 ""
1 ""
1 "foobar.c"
1 "foobar.h" 1
1 "foobar.h" 3
1 "foobar.c" 2
$ clang -c foobar.c -save-temps
In file included from foobar.c:1:
In file included from foobar.c:1:
./foobar.h:1:3: error: line marker directive requires a positive integer argument
0 "./foobar.h"
^
./foobar.h:2:3: error: line marker directive requires a positive integer argument
0 "./foobar.h" 3
^
2 errors generated.
$ cat foobar.i
1 "foobar.c"
1 "foobar.c" 1
1 "" 1
1 "" 3
132 "" 3
1 "" 1
1 "" 2
1 "foobar.c" 2
1 "./foobar.h" 1
0 "./foobar.h"
0 "./foobar.h" 3
2 "foobar.c" 2
The text was updated successfully, but these errors were encountered: