aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/datetime.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/datetime.c')
-rw-r--r--test/PCH/datetime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/PCH/datetime.c b/test/PCH/datetime.c
new file mode 100644
index 000000000000..801c0c71048f
--- /dev/null
+++ b/test/PCH/datetime.c
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 -x c-header %s -emit-pch -o %t 2>&1 | FileCheck %s
+// CHECK: precompiled header uses __DATE__ or __TIME__
+const char *p = __DATE__;