xref: /llvm-project/clang/test/Sema/fmv-namespace.cpp (revision 8930ba98e01bc66949e482b396f8389d64388359)
1 // RUN: %clang_cc1 -triple aarch64-linux-gnu  -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 
4 namespace Name {
foo()5 int __attribute((target_version("default"))) foo() { return 0; }
6 }
7 
8 namespace Name {
foo()9 int __attribute((target_version("sve"))) foo() { return 1; }
10 }
11 
bar()12 int bar() { return Name::foo(); }
13