Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.target/i386/mv13.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 multiversioning functions that are extern "C" |
2 // generates errors. | |
3 | |
4 // { dg-do compile } | |
5 | |
6 extern "C" | |
7 __attribute__ ((target ("default"))) | |
8 int foo () // { dg-message "previously defined here" } | |
9 { | |
10 return 0; | |
11 } | |
12 | |
13 extern "C" | |
14 __attribute__ ((target ("sse4.2"))) | |
15 int foo () // { dg-error "redefinition" } | |
16 { | |
17 return 1; | |
18 } |