mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
25 lines
338 B
C++
25 lines
338 B
C++
|
|
constexpr int fun_constexpr();
|
|
int fun_not_constexpr();
|
|
|
|
constexpr int overloaded_fun(int i) {
|
|
return 5;
|
|
}
|
|
|
|
int overloaded_fun(float f) {
|
|
return 6;
|
|
}
|
|
|
|
template <typename T>
|
|
constexpr int template_fun(T t) {
|
|
return overloaded_fun(t);
|
|
}
|
|
|
|
void caller(void) {
|
|
int i;
|
|
float f;
|
|
template_fun(i);
|
|
template_fun(f);
|
|
}
|
|
|