From 77fe3dd74446fb07dd0de31114f7033f111ef868 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 15 Aug 2019 18:38:59 -0400 Subject: A more convoluted #pragma once file identity test, using relative paths. (#1021) * A more convoluted #pragma once file identity test, using relative paths. * Fix bug with passing - to slang as a command line option causes a crash. Ability to set file-system to use on command line. #pragma once tests try with 'normal' and 'read-file' only versions * OSFileSystem -> OSFileSystemExt LoadFileOSFileSystem -> OSFileSystem Implemented OSFileSystem like OSFileSystemExt as as singleton. Fixes to comments. --- tests/preprocessor/file-identity/b.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/preprocessor/file-identity/b.h (limited to 'tests/preprocessor/file-identity/b.h') 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 -- cgit v1.2.3