blob: ed4b9351f74c7db33843d2eb380cca078853ba46 (
plain)
1
2
3
4
5
6
7
8
9
|
// { dg-do compile { target c++20 } }
namespace std {
typedef int source_location;
}
auto x = __builtin_source_location (); // { dg-error "'std::source_location'\[^\n\r]*is not a class type" }
// { dg-error "'__impl' is not a member of 'std::source_location'" "" { target *-*-* } .-1 }
// { dg-message "using '__builtin_source_location'" "" { target *-*-* } .-2 }
|