summaryrefslogtreecommitdiff
path: root/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p9-0x.cpp
blob: f204caf57abd48c4fb34ed0bca1166b81719e95b (about) (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s

template<typename T> int &f0(T&);
template<typename T> float &f0(T&&);

// Core issue 1164
void test_f0(int i) {
  int &ir0 = f0(i);
  float &fr0 = f0(5);
}