libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / spec-barrier-3.c
blob0940a2105c64d44e53eac61787986ab8a8cc8bcf
1 /* { dg-do compile } */
2 /* { dg-options "-fpermissive -Wpedantic" } */
4 /* __builtin_speculation_safe_value returns a value with the same type
5 as its first argument. There should be a warning if that isn't
6 type-compatible with the use. */
7 int *
8 f (int x)
10 return __builtin_speculation_safe_value (x); /* { dg-warning "returning 'int' from a function with return type 'int \\*' makes pointer from integer without a cast" } */
13 /* { dg-prune-output "this target does not define a speculation barrier;" } */