OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / sizeof12.C
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin PR c++/41863
3
4 template<int X>
5 struct Bar
6 {
7 };
8
9 template<typename T>
10 class Foo
11 {
12   T m_foo;
13
14   void
15   crash()
16   {
17     Bar<sizeof(m_foo)> bar;
18   }
19 };