mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
22 lines
301 B
C++
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);
|
|
}
|