AVR: target/84211 - Add a post reload register optimization pass.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr86505.c
blobdb102d308e6835a885600c7efbb39707e0609070
1 /* { dg-do run } */
3 static inline __attribute__(( __always_inline__)) int
4 funA(unsigned int param, ...)
5 {
6 return __builtin_va_arg_pack_len();
9 static inline __attribute__(( __always_inline__)) int
10 funB(unsigned int param, ...)
12 return funA(param, 2, 4, __builtin_va_arg_pack());
15 int
16 testBuiltin(void)
18 int rc = funB(0,1,2);
19 if (rc != 4)
20 return 1;
21 return 0;
24 int
25 main()
27 int rc = testBuiltin();
28 if (rc == 1)
29 __builtin_abort ();
31 return 0;