1// Contributed by Dodji Seketeli <dodji@redhat.com>
2// Origin: PR c++/26693
3// { dg-do compile }
4
5template <class T>
6struct A
7{
8  typedef int mytype;
9
10  void
11  foo ()
12  {
13    mytype v = ~static_cast<mytype> (0);
14  }
15};
16
17