comparison clang/test/AST/ast-print-record-decl.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children c4bab56944e8
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
5 // RUN: %clang -target x86_64-linux -Xclang -verify -S -emit-llvm \ 5 // RUN: %clang -target x86_64-linux -Xclang -verify -S -emit-llvm \
6 // RUN: -DKW=struct -DBASES= -o - %s \ 6 // RUN: -DKW=struct -DBASES= -o - %s \
7 // RUN: | FileCheck --check-prefixes=CHECK,LLVM %s 7 // RUN: | FileCheck --check-prefixes=CHECK,LLVM %s
8 // 8 //
9 // RUN: %clang_cc1 -verify -ast-print -DKW=struct -DBASES= %s > %t.c 9 // RUN: %clang_cc1 -verify -ast-print -DKW=struct -DBASES= %s > %t.c
10 // RUN: FileCheck --check-prefixes=CHECK,PRINT,PRINT-C -DKW=struct -DBASES= \ 10 // RUN: FileCheck --check-prefixes=CHECK,PRINT -DKW=struct -DBASES= \
11 // RUN: %s --input-file %t.c 11 // RUN: %s --input-file %t.c
12 // 12 //
13 // Now check compiling and printing of the printed file. 13 // Now check compiling and printing of the printed file.
14 // 14 //
15 // RUN: echo "// expected""-warning@* 10 {{'T' is deprecated}}" >> %t.c 15 // RUN: echo "// expected""-warning@* 10 {{'T' is deprecated}}" >> %t.c
17 // 17 //
18 // RUN: %clang -target x86_64-linux -Xclang -verify -S -emit-llvm -o - %t.c \ 18 // RUN: %clang -target x86_64-linux -Xclang -verify -S -emit-llvm -o - %t.c \
19 // RUN: | FileCheck --check-prefixes=CHECK,LLVM %s 19 // RUN: | FileCheck --check-prefixes=CHECK,LLVM %s
20 // 20 //
21 // RUN: %clang_cc1 -verify -ast-print %t.c \ 21 // RUN: %clang_cc1 -verify -ast-print %t.c \
22 // RUN: | FileCheck --check-prefixes=CHECK,PRINT,PRINT-C -DKW=struct \ 22 // RUN: | FileCheck --check-prefixes=CHECK,PRINT -DKW=struct \
23 // RUN: -DBASES= %s 23 // RUN: -DBASES= %s
24 24
25 // Repeat for union: 25 // Repeat for union:
26 // 26 //
27 // First check compiling and printing of this file. 27 // First check compiling and printing of this file.
29 // RUN: %clang -target x86_64-linux -Xclang -verify -S -emit-llvm \ 29 // RUN: %clang -target x86_64-linux -Xclang -verify -S -emit-llvm \
30 // RUN: -DKW=union -DBASES= -o - %s \ 30 // RUN: -DKW=union -DBASES= -o - %s \
31 // RUN: | FileCheck --check-prefixes=CHECK,LLVM %s 31 // RUN: | FileCheck --check-prefixes=CHECK,LLVM %s
32 // 32 //
33 // RUN: %clang_cc1 -verify -ast-print -DKW=union -DBASES= %s > %t.c 33 // RUN: %clang_cc1 -verify -ast-print -DKW=union -DBASES= %s > %t.c
34 // RUN: FileCheck --check-prefixes=CHECK,PRINT,PRINT-C -DKW=union -DBASES= \ 34 // RUN: FileCheck --check-prefixes=CHECK,PRINT -DKW=union -DBASES= \
35 // RUN: %s --input-file %t.c 35 // RUN: %s --input-file %t.c
36 // 36 //
37 // Now check compiling and printing of the printed file. 37 // Now check compiling and printing of the printed file.
38 // 38 //
39 // RUN: echo "// expected""-warning@* 10 {{'T' is deprecated}}" >> %t.c 39 // RUN: echo "// expected""-warning@* 10 {{'T' is deprecated}}" >> %t.c
41 // 41 //
42 // RUN: %clang -target x86_64-linux -Xclang -verify -S -emit-llvm -o - %t.c \ 42 // RUN: %clang -target x86_64-linux -Xclang -verify -S -emit-llvm -o - %t.c \
43 // RUN: | FileCheck --check-prefixes=CHECK,LLVM %s 43 // RUN: | FileCheck --check-prefixes=CHECK,LLVM %s
44 // 44 //
45 // RUN: %clang_cc1 -verify -ast-print %t.c \ 45 // RUN: %clang_cc1 -verify -ast-print %t.c \
46 // RUN: | FileCheck --check-prefixes=CHECK,PRINT,PRINT-C -DKW=union \ 46 // RUN: | FileCheck --check-prefixes=CHECK,PRINT -DKW=union \
47 // RUN: -DBASES= %s 47 // RUN: -DBASES= %s
48 48
49 // Repeat for C++ (BASES helps ensure we're printing as C++ not as C): 49 // Repeat for C++ (BASES helps ensure we're printing as C++ not as C):
50 // 50 //
51 // First check compiling and printing of this file. 51 // First check compiling and printing of this file.