1 // Test that the required #pragma directives are minimized
2 // RUN: %clang_cc1 -print-dependency-directives-minimized-source %s 2>&1 | FileCheck %s
6 // some pragmas not needed in minimized source.
7 #pragma region TestRegion
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")