Erich Keane | 281d20b | 2018-01-08 21:34:17 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple arm-none-eabi -fsyntax-only -verify %s |
| 2 | |
| 3 | int __attribute__((target("sse4.2"))) redecl1(void) { return 1; } |
| 4 | //expected-error@+2 {{function multiversioning is not supported on the current target}} |
| 5 | //expected-note@-2 {{previous declaration is here}} |
| 6 | int __attribute__((target("avx"))) redecl1(void) { return 2; } |
| 7 | |
| 8 | //expected-error@+1 {{function multiversioning is not supported on the current target}} |
| 9 | int __attribute__((target("default"))) with_def(void) { return 1;} |