brintos

brintos / llvm-project-archived public Read only

0
0
Text · 376 B · c3fefe6 Raw
18 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s2// RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s3// RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 %s4 5struct foo {6  static constexpr bool bar() {7      return true;8  }9 10  template<bool B = bar()>11  static constexpr bool baz() {12      return B;13  }14};15static_assert(foo::baz(), "");16 17// expected-no-diagnostics18