| // RUN: %clang_cc1 -fsyntax-only -verify %s |
| // expected-no-diagnostics |
| template <typename Iterator> |
| static const unsigned int member = r; |
| const unsigned int A<r>::member; |
| template<typename OT> int myMethod() |
| { return 2 && sizeof(OT); } |
| template <typename T> T *addressof(T &v) { |
| return reinterpret_cast<T*>( |
| &const_cast<char&>(reinterpret_cast<const volatile char &>(v))); |
| template <typename T> class chained_map { |
| template <class _CharT> int test(_CharT t) |
| sizeof(_CharT) > sizeof(char) |
| template<typename T> struct CastDependentIntToPointer { |
| return ((void*)(((unsigned long)(x)|0x1ul))); |
| // Regression test for crasher in r194540. |
| template<typename> struct A { |
| template<typename T> void A<T>::f() { |
| template<int N> struct A { |
| static const int n = {N}; |