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