| 1 |
// { dg-do compile { target c++20 } } |
| 2 |
|
| 3 |
namespace std { |
| 4 |
void source_location (); |
| 5 |
} |
| 6 |
|
| 7 |
auto x = __builtin_source_location (); // { dg-error "'void std::source_location\\(\\)' is not a type" } |
| 8 |
// { dg-message "using '__builtin_source_location'" "" { target *-*-* } .-1 } |