Give files from #line the characteristics of the current file
This allows #line directives to appear in system headers that have code
that clang would normally warn on. This is compatible with GCC, which is
easy to test by running `gcc -E`.
Fixes PR30752
llvm-svn: 303582
diff --git a/clang/test/Frontend/Inputs/SystemHeaderPrefix/line.h b/clang/test/Frontend/Inputs/SystemHeaderPrefix/line.h
new file mode 100644
index 0000000..c4c15e5
--- /dev/null
+++ b/clang/test/Frontend/Inputs/SystemHeaderPrefix/line.h
@@ -0,0 +1,2 @@
+#line 1 "foo.h"
+foo();