We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8108584 commit 0b8f64bCopy full SHA for 0b8f64b
clang/test/CIR/Lowering/nested-union-array.c
@@ -0,0 +1,28 @@
1
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t.ll
2
+// RUN: FileCheck --input-file=%t.ll %s --check-prefix=LLVM
3
+
4
+struct nested
5
+{
6
+ union {
7
+ const char *single;
8
+ const char *const *multi;
9
+ } output;
10
+};
11
+static const char * const test[] = {
12
+ "test",
13
14
+const struct nested data[] =
15
16
+ {
17
18
+ .multi = test,
19
+ },
20
21
22
23
+ .single = "hello",
24
25
26
27
28
+// LLVM: @data = constant [2 x {{.*}}]
0 commit comments