Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/lto/chkp-ctor-merge_0.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-lto-do run } */ |
2 /* { dg-require-effective-target mpx } */ | |
3 /* { dg-lto-options { { -O2 -flto -fcheck-pointer-bounds -mmpx -nodefaultlibs -lc } } } */ | |
4 | |
5 int glob = 1; | |
6 | |
7 void __attribute__((constructor)) | |
8 ctor1 () | |
9 { | |
10 glob += 1; | |
11 } | |
12 | |
13 | |
14 void __attribute__((constructor)) | |
15 ctor2 () | |
16 { | |
17 glob -= 2; | |
18 } | |
19 | |
20 int main (int argc, const char **argv) | |
21 { | |
22 return glob; | |
23 } |