[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Lexer / minimize_source_to_dependency_directives_pragmas.c
blob0971649caf6738d321ee3253be5d8d70fb66dfc6
1 // Test that the required #pragma directives are minimized
2 // RUN: %clang_cc1 -print-dependency-directives-minimized-source %s 2>&1 | FileCheck %s
4 #pragma once
6 // some pragmas not needed in minimized source.
7 #pragma region TestRegion
8 #pragma endregion
9 #pragma warning "message"
11 // pragmas required in the minimized source.
12 #pragma push_macro( "MYMACRO" )
13 #pragma pop_macro("MYMACRO")
14 #pragma clang module import mymodule
15 #pragma include_alias(<string>, "mystring.h")
17 // CHECK: #pragma once
18 // CHECK-NEXT: #pragma push_macro("MYMACRO")
19 // CHECK-NEXT: #pragma pop_macro("MYMACRO")
20 // CHECK-NEXT: #pragma clang module import mymodule
21 // CHECK-NEXT: #pragma include_alias(<string>, "mystring.h")