c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / pr103798-5.c
blob0d6487a13df6e962233be8f3ab9091d5a354101f
1 /* { dg-do run { target int128 } } */
2 /* { dg-options "-O2 -fdump-tree-optimized -save-temps" } */
4 __attribute__ ((weak))
5 int f(char a)
7 return __builtin_memchr ("aEgiH", a, 5) == 0;
10 __attribute__ ((weak))
11 int g(char a)
13 return a != 'a' && a != 'E' && a != 'g' && a != 'i' && a != 'H';
16 int
17 main ()
19 for (int i = 0; i < 255; i++)
20 if (f (i) != g (i))
21 __builtin_abort ();
23 return 0;
26 /* { dg-final { scan-assembler-not "memchr" } } */