Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.target/i386/mv5.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
rev | line source |
---|---|
131 | 1 /* Test case to check if multiversioned functions are still generated if they are |
2 marked comdat with inline keyword. */ | |
3 | |
4 /* { dg-do run } */ | |
5 /* { dg-require-ifunc "" } */ | |
6 /* { dg-options "-O2" } */ | |
7 | |
8 | |
9 /* Default version. */ | |
10 inline int __attribute__ ((target ("default"))) | |
11 foo () | |
12 { | |
13 return 0; | |
14 } | |
15 | |
16 inline int __attribute__ ((target ("popcnt"))) | |
17 foo () | |
18 { | |
19 return 0; | |
20 } | |
21 | |
22 int main () | |
23 { | |
24 return foo (); | |
25 } |