]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp2a/srcloc3.C
c++: modules and std::source_location::current() def arg [PR100881]
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp2a / srcloc3.C
1 // { dg-do compile { target c++20 } }
2
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 }