blob: aa8cf98880c0ba70b283a402616413f9ad2af34f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// { dg-do compile { target c++20 } }
namespace std {
struct source_location {
struct __impl {
const char *_M_file_name, *_M_function_name;
int __foo, _M_line, _M_column;
};
};
}
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 }
|