Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/torture/pr86505.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* { dg-do run } */ | |
2 | |
3 static inline __attribute__(( __always_inline__)) int | |
4 funA(unsigned int param, ...) | |
5 { | |
6 return __builtin_va_arg_pack_len(); | |
7 } | |
8 | |
9 static inline __attribute__(( __always_inline__)) int | |
10 funB(unsigned int param, ...) | |
11 { | |
12 return funA(param, 2, 4, __builtin_va_arg_pack()); | |
13 } | |
14 | |
15 int | |
16 testBuiltin(void) | |
17 { | |
18 int rc = funB(0,1,2); | |
19 if (rc != 4) | |
20 return 1; | |
21 return 0; | |
22 } | |
23 | |
24 int | |
25 main() | |
26 { | |
27 int rc = testBuiltin(); | |
28 if (rc == 1) | |
29 __builtin_abort (); | |
30 | |
31 return 0; | |
32 } |