[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / clang / test / AST / attr-lifetime-capture-by.cpp
blobda2eb0cf3d592ec0d4a803a0ab062406c1802fd1
1 // RUN: %clang_cc1 %s -ast-dump | FileCheck %s
3 // Verify that we print the [[clang::lifetime_capture_by(X)]] attribute.
5 struct S {
6 void foo(int &a, int &b) [[clang::lifetime_capture_by(a, b, global)]];
7 };
9 // CHECK: CXXMethodDecl {{.*}}clang::lifetime_capture_by(a, b, global)