summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/variadic88.C
blob: b14cabe32181857656270f99de41e42fdd222c8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-options "-std=c++0x" }

template<template<typename...> class TT>
TT<int, float, double> foo(TT<int, float>)
{
  return TT<int, float, double>();
}

template<typename T>
int& foo(T) 
{ 
  static int i = 0; return i; 
}

template<typename T, typename U>
struct pair {};

void bar()
{
  pair<int, float> p;
  int& i = foo(p);
}