| 1 |
// Test use of `sizeof' as a template parameter. |
| 2 |
// Origin: [email protected] |
| 3 |
|
| 4 |
// { dg-do compile } |
| 5 |
|
| 6 |
template <unsigned I> struct A { static char *value; }; |
| 7 |
|
| 8 |
template <typename SizeType> |
| 9 |
struct B |
| 10 |
{ |
| 11 |
char * f() const |
| 12 |
{ |
| 13 |
return (A<sizeof(void *)>::value); |
| 14 |
} |
| 15 |
}; |