summaryrefslogtreecommitdiff
path: root/test/cxx/preproc
diff options
context:
space:
mode:
Diffstat (limited to 'test/cxx/preproc')
-rwxr-xr-xtest/cxx/preproc5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cxx/preproc b/test/cxx/preproc
new file mode 100755
index 00000000..2661a197
--- /dev/null
+++ b/test/cxx/preproc
@@ -0,0 +1,5 @@
+#!/bin/bash
+#
+
+echo 'struct __builtin_va_list {};'
+g++ -E -undef -D'__attribute__(xyz)=' "$@" | sed 's/#.*$//' | grep -v '^[ \t]*$'