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

namespace std {
  struct source_location {
  };
}

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