aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/pragma-captured.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/pragma-captured.c')
-rw-r--r--test/Preprocessor/pragma-captured.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Preprocessor/pragma-captured.c b/test/Preprocessor/pragma-captured.c
new file mode 100644
index 0000000000..be2a62b5e4
--- /dev/null
+++ b/test/Preprocessor/pragma-captured.c
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -E %s | FileCheck %s
+
+// Test pragma clang __debug captured, for Captured Statements
+
+void test1()
+{
+ #pragma clang __debug captured
+ {
+ }
+// CHECK: void test1()
+// CHECK: {
+// CHECK: #pragma clang __debug captured
+}