constexpr.cpp 322 B

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