From c72c57c9e9b69944e3e009cd5e209634839581d3 Mon Sep 17 00:00:00 2001 From: dim Date: Mon, 8 Apr 2013 18:45:10 +0000 Subject: Vendor import of clang trunk r178860: http://llvm.org/svn/llvm-project/cfe/trunk@178860 --- test/CodeCompletion/constexpr.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/CodeCompletion/constexpr.cpp (limited to 'test/CodeCompletion/constexpr.cpp') diff --git a/test/CodeCompletion/constexpr.cpp b/test/CodeCompletion/constexpr.cpp new file mode 100644 index 0000000..12396c0 --- /dev/null +++ b/test/CodeCompletion/constexpr.cpp @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++11 -code-completion-at=%s:12:9 %s -o - | FileCheck %s + +// PR14381: need constexpr function bodies always, even if code-completing. +template struct S; +template<> struct S<1> { + typedef int type; +}; +constexpr int f() { + return 1; +} + +S:: +// CHECK: COMPLETION: type : type -- cgit v1.1