summaryrefslogtreecommitdiff
path: root/tests/preprocessor/file-identity/c.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/preprocessor/file-identity/c.h')
-rw-r--r--tests/preprocessor/file-identity/c.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/preprocessor/file-identity/c.h b/tests/preprocessor/file-identity/c.h
new file mode 100644
index 000000000..eb6cd1c42
--- /dev/null
+++ b/tests/preprocessor/file-identity/c.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "b.h"
+
+#ifdef C_H
+# error "c.h shouldn't be included twice"
+#endif
+
+#define C_H
+
+float bar(float x) { return x; } \ No newline at end of file