Debian Codegraph @

clang/test/SemaCUDA/pr54537.cu

raw
1 // Regression test for the crash in
2 // https://github.com/llvm/llvm-project/issues/54537
3 //
4 // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
5 // expected-no-diagnostics
6
7 template< class T > inline constexpr bool test_v = true;
8
9 template <typename T>
10 struct A {
11 A(const T = 1 ) requires test_v<T>;
12 };
13
14 struct B : A<int> {
15 using A<int>::A;
16 };