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