aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/local_static.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/local_static.h')
-rw-r--r--test/PCH/local_static.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/PCH/local_static.h b/test/PCH/local_static.h
new file mode 100644
index 000000000000..a69382adf838
--- /dev/null
+++ b/test/PCH/local_static.h
@@ -0,0 +1,7 @@
+class Bar {
+public:
+ template<typename T>
+ void f() {
+ static const T y = 0;
+ }
+};