aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/srcloc14.C
blob: 2730143c6ee2e2756c2e27a9b93a70ff1d140033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile { target c++20 } }

namespace std {
  struct source_location {
    struct __impl {
      // Test that ordering doesn't matter
      long long _M_column;
      const char *_M_file_name;
      int _M_line;
      const char *_M_function_name;
    };
  };
}

auto x = __builtin_source_location ();