Skip to content

Commit b8e75e8

Browse files
committed
[CIR][Lowering] Updated nested-union-array test to remove special case handling result
1 parent 495d905 commit b8e75e8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)