summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/static_cast4.C
blob: cea7f4873938deced3cabab7c30d1d640c3aa91e (plain)
1
2
3
4
5
6
7
8
9
10
11
class C { 
public: 
    explicit C(int) {} 
}; 
 
int main() 
{ 
    int i = 0; 
    static_cast<C>(i); 
    return 0; 
}