| 1 |
// Regression test for bug 39415 (and its duplicate 44916). |
| 2 |
struct S {}; |
| 3 |
struct T : S {}; |
| 4 |
int f(const T*) { return 0; } |
| 5 |
void f(T*); |
| 6 |
int main() { |
| 7 |
S* s(0); |
| 8 |
int a = f(static_cast<const T*>(s)); |
| 9 |
int b = f(static_cast<const T*>(0)); |
| 10 |
} |