diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/ubsan/pr82353-2.h')
-rw-r--r-- | gcc/testsuite/g++.dg/ubsan/pr82353-2.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ubsan/pr82353-2.h b/gcc/testsuite/g++.dg/ubsan/pr82353-2.h new file mode 100644 index 00000000000..4693d2299f2 --- /dev/null +++ b/gcc/testsuite/g++.dg/ubsan/pr82353-2.h @@ -0,0 +1,31 @@ +extern unsigned long f, g; +extern bool h, i, j, k; +extern unsigned char l, m; +extern short n; +extern unsigned o; +struct B { + short b0 : 27; + long b1 : 10; +}; +struct A { + int a0 : 5; +}; +struct C { + static B c0; +}; +struct D { + static unsigned d0; + A d1; +}; +struct E { + B e2; + D e4; +}; +struct F { + E f2; + short f4; +}; +extern F p; +extern C q; +void foo (); +void bar (); |