aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/keywords.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/keywords.sh')
-rw-r--r--tests/keywords.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/keywords.sh b/tests/keywords.sh
new file mode 100644
index 0000000..0bdb6f7
--- /dev/null
+++ b/tests/keywords.sh
@@ -0,0 +1,14 @@
+cat <<'EOF' > expected
+
+
+int printf ();
+int main () {}
+EOF
+
+test_cpp <<'EOF'
+// A keyword is treated as a normal identifier in preprocessing phase.
+#define auto int
+
+auto printf();
+auto main() {}
+EOF