blob: 9cf3c5e10a6b27b821315c843009bef87e923d5e [file] [log] [blame]
Erich Keane281d20b2018-01-08 21:34:17 +00001// RUN: %clang_cc1 -triple x86_64-windows-pc -fsyntax-only -verify %s
2// RUN: %clang_cc1 -triple arm-none-eabi -fsyntax-only -verify %s
3
4int __attribute__((target("sse4.2"))) redecl1(void) { return 1; }
5//expected-error@+2 {{function multiversioning is not supported on the current target}}
6//expected-note@-2 {{previous declaration is here}}
7int __attribute__((target("avx"))) redecl1(void) { return 2; }
8
9//expected-error@+1 {{function multiversioning is not supported on the current target}}
10int __attribute__((target("default"))) with_def(void) { return 1;}