[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / warn-unused-local-typedef.cpp
blob14cfcc3ebcf09a2c65e2d0ce4e8f5f120abcc253
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -Wunused-local-typedef -x objective-c++ -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -fsyntax-only 2>&1 | FileCheck %s -check-prefix=CHECK_1
3 // RUN: %clang_cc1 -Wunused-local-typedef -x objective-c++ -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -fsyntax-only 2>&1 | FileCheck %s -check-prefix=CHECK_2 --allow-empty
5 // For modules, the warning should only fire the first time, when the module is
6 // built.
7 // CHECK_1: warning: unused typedef
8 // CHECK_2-NOT: warning: unused typedef
9 @import warn_unused_local_typedef;