11a5bd5d680726f3d133da27791b228b2c8fe96c6Richard Smith// RUN: %clang_cc1 -fsyntax-only -std=c++11 -code-completion-at=%s:12:9 %s -o - | FileCheck %s 21a5bd5d680726f3d133da27791b228b2c8fe96c6Richard Smith 31a5bd5d680726f3d133da27791b228b2c8fe96c6Richard Smith// PR14381: need constexpr function bodies always, even if code-completing. 41a5bd5d680726f3d133da27791b228b2c8fe96c6Richard Smithtemplate<int> struct S; 51a5bd5d680726f3d133da27791b228b2c8fe96c6Richard Smithtemplate<> struct S<1> { 61a5bd5d680726f3d133da27791b228b2c8fe96c6Richard Smith typedef int type; 71a5bd5d680726f3d133da27791b228b2c8fe96c6Richard Smith}; 81a5bd5d680726f3d133da27791b228b2c8fe96c6Richard Smithconstexpr int f() { 91a5bd5d680726f3d133da27791b228b2c8fe96c6Richard Smith return 1; 101a5bd5d680726f3d133da27791b228b2c8fe96c6Richard Smith} 111a5bd5d680726f3d133da27791b228b2c8fe96c6Richard Smith 121a5bd5d680726f3d133da27791b228b2c8fe96c6Richard SmithS<f()>:: 131a5bd5d680726f3d133da27791b228b2c8fe96c6Richard Smith// CHECK: COMPLETION: type : type 14