summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb18.C
blob: 8f0a829370266cc8aaf53d94d1119e8767563656 (plain)
1
2
3
4
5
6
7
8
// { dg-do assemble  }
class C { };

void foo()
{
    C c;
    void * v = static_cast<void *>(c);  // { dg-error "" } illegal cast
}