Skip to content

Commit

Permalink
Update P1208R6_source_location for a compiler fix (#3046)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanTLavavej authored Aug 20, 2022
1 parent 20db59e commit fef8191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/std/tests/P1208R6_source_location/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ constexpr void sloc_constructor_test() {
const s x;
assert(x.loc.line() == __LINE__ - 1);
#ifdef _PREFAST_
assert(x.loc.column() == 14);
assert(x.loc.column() == 14 || x.loc.column() == 13); // TRANSITION, 17.4 Preview 3
#else // _PREFAST_
assert(x.loc.column() == 13);
#endif // _PREFAST_
Expand All @@ -90,7 +90,7 @@ constexpr void sub_member_test() {
const s2 s;
assert(s.x.loc.line() == __LINE__ - 1);
#ifdef _PREFAST_
assert(s.x.loc.column() == 15);
assert(s.x.loc.column() == 15 || s.x.loc.column() == 14); // TRANSITION, 17.4 Preview 3
#else // _PREFAST_
assert(s.x.loc.column() == 14);
#endif // _PREFAST_
Expand Down

0 comments on commit fef8191

Please sign in to comment.