summaryrefslogtreecommitdiffstats
path: root/src/seastar/cmake/code_tests/Source_location_default_argument.cc
blob: 828d91b877794aedec96d409e9cf69631129eb13 (plain)
1
2
3
4
5
6
7
8
9
10
#include<source_location>

int test_source_location(int line,
                         std::source_location loc = std::source_location::current()) {
    return line == loc.line() ? 0 : 1;
}

int main() {
    return test_source_location(__LINE__);
}