annotate clang/test/CodeCompletion/constexpr.cpp @ 165:597b3f1c2c93

fix call createTailCallEliminationPass
author anatofuz
date Tue, 24 Mar 2020 15:30:52 +0900
parents 1d019706d866
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -code-completion-at=%s:12:9 %s -o - | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // PR14381: need constexpr function bodies always, even if code-completing.
anatofuz
parents:
diff changeset
4 template<int> struct S;
anatofuz
parents:
diff changeset
5 template<> struct S<1> {
anatofuz
parents:
diff changeset
6 typedef int type;
anatofuz
parents:
diff changeset
7 };
anatofuz
parents:
diff changeset
8 constexpr int f() {
anatofuz
parents:
diff changeset
9 return 1;
anatofuz
parents:
diff changeset
10 }
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 S<f()>::
anatofuz
parents:
diff changeset
13 // CHECK: COMPLETION: type : type