Skip to content

Commit c3c4a88

Browse files
authored
[clang][bytecode] Add a C test case (#167484)
The original problem does not reproduce anymore, but add the test case. Fixes #163563
1 parent 0400b9a commit c3c4a88

File tree

1 file changed

+5
-0
lines changed
  • clang/test/AST/ByteCode

1 file changed

+5
-0
lines changed

clang/test/AST/ByteCode/c.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,3 +387,8 @@ void bar2(void) {
387387
int a[2][3][4][5]; // all-note {{array 'a' declared here}}
388388
foo2(&a[0][4]); // all-warning {{array index 4 is past the end of the array}}
389389
}
390+
391+
void plainComplex(void) {
392+
_Complex cd; // all-warning {{_Complex double}}
393+
cd = *(_Complex *)&(struct { double r, i; }){0.0, 0.0}; // all-warning {{_Complex double}}
394+
}

0 commit comments

Comments
 (0)