Files
codeql/cpp/ql/test/library-tests/deduction_guides/test.cpp
2024-08-02 14:12:56 +02:00

22 lines
301 B
C++

// semmle-extractor-options: -std=c++20
template<typename T>
struct C {
C(const T);
C(char, char);
};
C(const double) -> C<int>;
template<typename T>
C(const T) -> C<int>;
C(char, char) -> C<char>;
void test() {
new C<char>(0);
new C<int>(0);
new C(0.0f);
new C(0.0);
}