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