summaryrefslogtreecommitdiff
path: root/test/SemaCXX/Inputs
diff options
context:
space:
mode:
authorDario Domizioli <dario.domizioli@gmail.com>2014-07-28 14:33:17 +0000
committerDario Domizioli <dario.domizioli@gmail.com>2014-07-28 14:33:17 +0000
commit852e1d59f8dc5fba7d79c7dfc9e5514eb212b8eb (patch)
treef3059832bd7425782800429e465483a526676e05 /test/SemaCXX/Inputs
parentfdcb161cb8d40a6e9db9866634ac8a770924a7c3 (diff)
[TEST] Improve tests for #pragma clang optimize off/on
Added coverage for: * More than one "off region" in the same file * An "off region" falling off the end of an included file git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214086 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/Inputs')
-rw-r--r--test/SemaCXX/Inputs/header-with-pragma-optimize-off.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/Inputs/header-with-pragma-optimize-off.h b/test/SemaCXX/Inputs/header-with-pragma-optimize-off.h
new file mode 100644
index 0000000000..ac5020697e
--- /dev/null
+++ b/test/SemaCXX/Inputs/header-with-pragma-optimize-off.h
@@ -0,0 +1,5 @@
+
+// Open an "off" region in this header.
+#pragma clang optimize off
+
+// Let the "off" region fall through to anything including this header.