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

namespace std {
  struct source_location {
    typedef int __impl;
  };
}

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