summaryrefslogtreecommitdiff
path: root/test/PCH/pch-hdrstop-warn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/pch-hdrstop-warn.cpp')
-rw-r--r--test/PCH/pch-hdrstop-warn.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/PCH/pch-hdrstop-warn.cpp b/test/PCH/pch-hdrstop-warn.cpp
new file mode 100644
index 0000000000000..dbd592fb788f3
--- /dev/null
+++ b/test/PCH/pch-hdrstop-warn.cpp
@@ -0,0 +1,10 @@
+// Create PCH with #pragma hdrstop
+// RUN: %clang_cc1 -verify -I %S -emit-pch -pch-through-hdrstop-create \
+// RUN: -fms-extensions -o %t.pch -x c++-header %s
+
+// Create PCH object with #pragma hdrstop
+// RUN: %clang_cc1 -verify -I %S -emit-obj -include-pch %t.pch \
+// RUN: -pch-through-hdrstop-create -fms-extensions -o %t.obj -x c++ %s
+
+//expected-warning@+1{{hdrstop filename not supported}}
+#pragma hdrstop("name.pch")