blob: 618e09356326d81d76ff32908c0e79de78316dea (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// { dg-do compile { target c++20 } }
namespace std {
struct source_location {
struct __impl {
};
};
}
auto x = __builtin_source_location (); // { dg-error "'std::source_location::__impl' does not contain only non-static data members '_M_file_name', '_M_function_name', '_M_line' and '_M_column'" }
// { dg-message "using '__builtin_source_location'" "" { target *-*-* } .-1 }
|