12 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++23 -fsyntax-only -verify %s2// expected-no-diagnostics3 4namespace GH84473_bug {5void f1() {6 int b;7 (void) [=] [[gnu::regcall]] () {8 (void) b;9 };10}11}12 1// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++23 -fsyntax-only -verify %s2// expected-no-diagnostics3 4namespace GH84473_bug {5void f1() {6 int b;7 (void) [=] [[gnu::regcall]] () {8 (void) b;9 };10}11}12