brintos

brintos / llvm-project-archived public Read only

0
0
Text · 610 B · 14cfcc3 Raw
10 lines · cpp
1// RUN: rm -rf %t2// 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_13// 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-empty4 5// For modules, the warning should only fire the first time, when the module is6// built.7// CHECK_1: warning: unused typedef8// CHECK_2-NOT: warning: unused typedef9@import warn_unused_local_typedef;10