aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/srcloc4.C
blob: 9e92c449fc34713523cf109f3aad6f5a8763bcb5 (plain)
1
2
3
4
5
6
7
8
// { dg-do compile { target c++20 } }

namespace std {
  void source_location ();
}

auto x = __builtin_source_location ();	// { dg-error "'void std::source_location\\(\\)' is not a type" }
// { dg-message "using '__builtin_source_location'" "" { target *-*-* } .-1 }