1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -std=c++11 -code-completion-at=%s:12:9 %s -o - | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc // PR14381: need constexpr function bodies always, even if code-completing. 4*f4a2713aSLionel Sambuc template<int> struct S; 5*f4a2713aSLionel Sambuc template<> struct S<1> { 6*f4a2713aSLionel Sambuc typedef int type; 7*f4a2713aSLionel Sambuc }; f()8*f4a2713aSLionel Sambucconstexpr int f() { 9*f4a2713aSLionel Sambuc return 1; 10*f4a2713aSLionel Sambuc } 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc S<f()>:: 13*f4a2713aSLionel Sambuc // CHECK: COMPLETION: type : type 14