brintos

brintos / llvm-project-archived public Read only

0
0
Text · 499 B · 7a56384 Raw
24 lines · cpp
1// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -fsyntax-only %s2 3// REQUIRES: aarch64-registered-target || arm-registered-target4 5// expected-no-diagnostics6 7struct a {};8__SVFloat32_t b(a);9template <class c> using e = decltype(b(c()));10e<a> f(a);11template <class c> using h = decltype(f(c()));12template <class g> struct i {13  static void j() {14    a d;15    g()(d);16  }17};18struct k {19  template <class c> void operator()(c) {20    [](h<c>) {};21  }22  void l() { i<k>::j; }23};24