Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/srcloc3.C

raw
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>'; this is probably fixable by adding '#include <source_location>'" "" { target *-*-* } .-1 }
5 // { dg-message "using '__builtin_source_location'" "" { target *-*-* } .-2 }