summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/Inputs/SystemHeaderPrefix/noline.h
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-05-22 21:42:58 +0000
committerReid Kleckner <rnk@google.com>2017-05-22 21:42:58 +0000
commiteb00ee07beff4fab367fa16b8074ba9856469f52 (patch)
tree3637cd56cb1854a57d96615c43e6062e6ebf031e /clang/test/Frontend/Inputs/SystemHeaderPrefix/noline.h
parentb238cb8fbca233fef4a65e1ef3e28bb4f1eb42f2 (diff)
downloadbcm5719-llvm-eb00ee07beff4fab367fa16b8074ba9856469f52.tar.gz
bcm5719-llvm-eb00ee07beff4fab367fa16b8074ba9856469f52.zip
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
Diffstat (limited to 'clang/test/Frontend/Inputs/SystemHeaderPrefix/noline.h')
-rw-r--r--clang/test/Frontend/Inputs/SystemHeaderPrefix/noline.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Frontend/Inputs/SystemHeaderPrefix/noline.h b/clang/test/Frontend/Inputs/SystemHeaderPrefix/noline.h
new file mode 100644
index 00000000000..a280f9a5cce
--- /dev/null
+++ b/clang/test/Frontend/Inputs/SystemHeaderPrefix/noline.h
@@ -0,0 +1 @@
+foo();
OpenPOWER on IntegriCloud