Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/lto/pr70929_0.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 // { dg-lto-do run } | |
2 // { dg-lto-options { "-O3 -flto" } } | |
3 | |
4 struct s | |
5 { | |
6 int a; | |
7 s() {a=1;} | |
8 ~s() {} | |
9 }; | |
10 int t(struct s s); | |
11 int main() | |
12 { | |
13 s s; | |
14 int v=t(s); | |
15 if (!__builtin_constant_p (v)) | |
16 __builtin_abort (); | |
17 return 0; | |
18 } |