From c7d7a965c14318c07bd5b8ec60b960c2e95dfebd Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 14 Mar 2024 14:58:24 -0700 Subject: Support `#include` with angle brackets. (#3773) --- tests/preprocessor/include-angle-bracket.slang | 8 ++++++++ tests/preprocessor/include/include-pragma-once-c.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 tests/preprocessor/include-angle-bracket.slang (limited to 'tests/preprocessor') diff --git a/tests/preprocessor/include-angle-bracket.slang b/tests/preprocessor/include-angle-bracket.slang new file mode 100644 index 000000000..4b89387d4 --- /dev/null +++ b/tests/preprocessor/include-angle-bracket.slang @@ -0,0 +1,8 @@ +//TEST:SIMPLE: +// #include support + +int foo() { return 0; } + +#include + +int baz() { return bar(); } \ No newline at end of file diff --git a/tests/preprocessor/include/include-pragma-once-c.h b/tests/preprocessor/include/include-pragma-once-c.h index 5c07d2846..2577591fc 100644 --- a/tests/preprocessor/include/include-pragma-once-c.h +++ b/tests/preprocessor/include/include-pragma-once-c.h @@ -2,4 +2,4 @@ #pragma once -#include "pragma-once-c.h" \ No newline at end of file +#include "pragma-once-c.h" -- cgit v1.2.3