aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/fmv-namespace.cpp
blob: 1c12fd66cf243af2926e24e026033aff4d2e239c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -triple aarch64-linux-gnu  -fsyntax-only -verify %s
// expected-no-diagnostics

namespace Name {
int __attribute((target_version("default"))) foo() { return 0; }
}

namespace Name {
int __attribute((target_version("sve"))) foo() { return 1; }
}

int bar() { return Name::foo(); }