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