aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/embed_path_quote.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/embed_path_quote.c')
-rw-r--r--clang/test/Preprocessor/embed_path_quote.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/embed_path_quote.c b/clang/test/Preprocessor/embed_path_quote.c
new file mode 100644
index 0000000..79ca1e5
--- /dev/null
+++ b/clang/test/Preprocessor/embed_path_quote.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -std=c23 %s -fsyntax-only --embed-dir=%S/Inputs -verify
+// expected-no-diagnostics
+
+const char data[] = {
+#embed "single_byte.txt"
+};
+static_assert(sizeof(data) == 1);
+static_assert('a' == data[0]);