Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/biterrors4.d

raw
1 /* REQUIRED_ARGS: -preview=bitfields
2 * TEST_OUTPUT:
3 ---
4 fail_compilation/biterrors4.d(109): Error: cannot take address of bit-field `a`
5 ---
6 */
7
8 #line 100
9
10 struct S
11 {
12 int a:3;
13 }
14
15 void test()
16 {
17 S s;
18 int* p = &s.a;
19 }