(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp2a/
srcloc3.C
// { dg-do compile { target c++20 } }

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 "using '__builtin_source_location'" "" { target *-*-* } .-2 }