gcc/testsuite/g++.dg/cpp2a/srcloc14.C
raw| 1 | // { dg-do compile { target c++20 } } |
| 2 | |
| 3 | namespace std { |
| 4 | struct source_location { |
| 5 | struct __impl { |
| 6 | // Test that ordering doesn't matter |
| 7 | long long _M_column; |
| 8 | const char *_M_file_name; |
| 9 | int _M_line; |
| 10 | const char *_M_function_name; |
| 11 | }; |
| 12 | }; |
| 13 | } |
| 14 | |
| 15 | auto x = __builtin_source_location (); |