PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr28402.c
blob1368ac723b90f1d7359ab4a1c6124bcbc0606da8
1 /* { dg-options "" } */
2 typedef long long ll;
3 typedef unsigned long long ull;
5 int global;
7 #define A(BASE, OP, AMT) \
8 ll BASE ## AMT (ll x) { return x OP AMT; } \
9 ull BASE ## AMT ## u (ull x) { return x OP AMT; }
11 #define B(BASE, OP) \
12 A (BASE, OP, 1) \
13 A (BASE, OP, 10) \
14 A (BASE, OP, 31) \
15 A (BASE, OP, 33) \
16 A (BASE, OP, 61) \
17 A (BASE, OP, global)
19 B (left, <<)
20 B (right, >>)
22 /* { dg-final { scan-assembler-not "__\[a-z\]*si3" } } */