Skip to content

Commit 05e1a7d

Browse files
committed
Note bug numbers in tests.
1 parent 9ce04c8 commit 05e1a7d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

clang/test/SemaCXX/constant-expression-p2280r4.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ namespace pointer_comparisons {
358358
// expected-note {{in call to 'f4()'}}
359359
}
360360

361+
namespace GH149188 {
361362
namespace enable_if_1 {
362363
template <__SIZE_TYPE__ N>
363364
constexpr void foo(const char (&Str)[N])
@@ -381,3 +382,4 @@ namespace enable_if_2 {
381382
constexpr int x = foo();
382383
}
383384
}
385+
}

clang/test/SemaCXX/constexpr-never-constant.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ constexpr void other_func() {
2525
throw 12;
2626
}
2727

28-
// Make sure these don't trigger the diagnostic.
29-
extern const bool& b;
30-
constexpr bool fun1() { return b; }
31-
constexpr bool fun2(const bool& b) { return b; }
28+
namespace GH149041 {
29+
// Make sure these don't trigger the diagnostic.
30+
extern const bool& b;
31+
constexpr bool fun1() { return b; }
32+
constexpr bool fun2(const bool& b) { return b; }
33+
}

0 commit comments

Comments
 (0)