blob: b841ff6ceaa160f4a6dc92856fec53408ec4eaa2 (
plain)
1
2
3
4
5
|
// { dg-do compile { target c++2a } }
auto x = __builtin_source_location (); // { dg-error "'source_location' is not a member of 'std'" }
// { dg-message "std::source_location' is defined in header '<source_location>'; did you forget to '#include <source_location>'" "" { target *-*-* } .-1 }
// { dg-message "evaluating '__builtin_source_location'" "" { target *-*-* } .-2 }
|