1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 
4 struct S { int i; };
struct_ternary(S a,S b,bool select)5 S struct_ternary (S a, S b, bool select) { return select ? a : b; }
6 
7 /* { dg-final { scan-tree-dump-not "&\[ab\]" "optimized" } } */
8 /* { dg-final { scan-assembler-not "\[er\]sp" { target { { i?86-*-* x86_64-*-* } && { ! ia32 } } } } } */
9