summaryrefslogtreecommitdiff
path: root/clang/test/Index/Inputs/preamble_macro_template.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Index/Inputs/preamble_macro_template.h')
-rw-r--r--clang/test/Index/Inputs/preamble_macro_template.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Index/Inputs/preamble_macro_template.h b/clang/test/Index/Inputs/preamble_macro_template.h
new file mode 100644
index 0000000..18b076d
--- /dev/null
+++ b/clang/test/Index/Inputs/preamble_macro_template.h
@@ -0,0 +1,6 @@
+#define STATIC_CAST static_cast
+
+template<typename T>
+void foo(T *p) {
+ (void)STATIC_CAST<T*>(0);
+}