| 1 |
// RUN: %clang_cc1 -triple x86_64-linux-gnu -fsyntax-only -verify -Wunused %s |
| 2 |
|
| 3 |
__attribute__((target("sse3"))) |
| 4 |
static int not_used_fmv() { return 1; } |
| 5 |
__attribute__((target("avx2"))) |
| 6 |
static int not_used_fmv() { return 2; } |
| 7 |
__attribute__((target("default"))) |
| 8 |
static int not_used_fmv() { return 0; } // expected-warning {{unused function 'not_used_fmv'}} |
| 9 |
|
| 10 |
__attribute__((target("sse3"))) |
| 11 |
static int definitely_used_fmv() { return 1; } |
| 12 |
__attribute__((target("avx2"))) |
| 13 |
static int definitely_used_fmv() { return 2; } |
| 14 |
__attribute__((target("default"))) |
| 15 |
static int definitely_used_fmv() { return 0; } |
| 16 |
int definite_user() { return definitely_used_fmv(); } |