Debian Codegraph @

gcc/testsuite/g++.target/i386/mv5.C

raw
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 }