[VectorCombine] foldInsExtVectorToShuffle - canonicalize new shuffle(undef,x) ->...
[llvm-project.git] / clang / test / Modules / double-quotes.m
blobb5b4db9911b66192744dc03d52d4f2972433d1d7
1 // RUN: rm -rf %t
2 // RUN: mkdir %t
4 // RUN: %hmaptool write %S/Inputs/double-quotes/a.hmap.json %t/a.hmap
5 // RUN: %hmaptool write %S/Inputs/double-quotes/x.hmap.json %t/x.hmap
7 // RUN: sed -e "s@TEST_DIR@%{/S:regex_replacement}/Inputs/double-quotes@g" \
8 // RUN:   %S/Inputs/double-quotes/z.yaml > %t/z.yaml
10 // The output with and without modules should be the same
12 // RUN: %clang_cc1 \
13 // RUN:   -I %t/x.hmap -iquote %t/a.hmap -ivfsoverlay %t/z.yaml \
14 // RUN:   -F%S/Inputs/double-quotes -I%S/Inputs/double-quotes \
15 // RUN:   -Wquoted-include-in-framework-header -fsyntax-only %s -verify
17 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache \
18 // RUN:   -I %t/x.hmap -iquote %t/a.hmap -ivfsoverlay %t/z.yaml \
19 // RUN:   -F%S/Inputs/double-quotes -I%S/Inputs/double-quotes \
20 // RUN:   -Wquoted-include-in-framework-header -fsyntax-only %s \
21 // RUN:   2>%t/stderr
23 // The same warnings show up when modules is on but -verify doesn't get it
24 // because they only show up under the module A building context.
25 // RUN: FileCheck --input-file=%t/stderr %s
26 // CHECK: double-quoted include "A0.h" in framework header, expected angle-bracketed instead
27 // CHECK: #include "A0.h"
28 // CHECK:          ^~~~~~
29 // CHECK: <A/A0.h>
30 // CHECK: double-quoted include "B.h" in framework header, expected angle-bracketed instead
31 // CHECK: #include "B.h"
32 // CHECK:          ^~~~~
33 // CHECK: <B.h>
34 // CHECK: double-quoted include "B.h" in framework header, expected angle-bracketed instead
35 // CHECK: #import "B.h" // Included from Z.h & A.h
36 // CHECK:         ^~~~~
37 // CHECK: <B.h>
39 #import "A.h"
40 #import <Z/Z.h>
42 // Make sure we correctly handle paths that resemble frameworks, but aren't.
43 #import "NotAFramework/Headers/Headers/Thing1.h"
45 int bar(void) { return foo(); }
47 // expected-warning@Inputs/double-quotes/A.framework/Headers/A.h:1{{double-quoted include "A0.h" in framework header, expected angle-bracketed instead}}
48 // expected-warning@Inputs/double-quotes/A.framework/Headers/A.h:2{{double-quoted include "B.h" in framework header, expected angle-bracketed instead}}
49 // expected-warning@Inputs/double-quotes/flat-header-path/Z.h:1{{double-quoted include "B.h" in framework header, expected angle-bracketed instead}}