PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr68306.c
blob54e5b40f221b7edf99d681c811608b9aaccf2ed9
1 /* { dg-do compile } */
2 /* { dg-options "-O3" } */
3 /* { dg-additional-options "-mno-sse -mno-mmx" { target i?86-*-* x86_64-*-* } } */
5 enum powerpc_pmc_type { PPC_PMC_IBM };
6 struct {
7 unsigned num_pmcs;
8 enum powerpc_pmc_type pmc_type;
9 } a;
10 enum powerpc_pmc_type b;
11 void fn1() { a.num_pmcs = a.pmc_type = b; }