comparison clang/test/AST/c-casts.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
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
1 // Test without serialization:
1 // RUN: %clang_cc1 -w -ast-dump %s | FileCheck %s 2 // RUN: %clang_cc1 -w -ast-dump %s | FileCheck %s
3 //
4 // Test with serialization:
5 // RUN: %clang_cc1 -w -emit-pch -o %t %s
6 // RUN: %clang_cc1 -w -x c -include-pch %t -ast-dump-all /dev/null \
7 // RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \
8 // RUN: | FileCheck %s
2 9
3 // The cast construction code both for implicit and c-style casts is very 10 // The cast construction code both for implicit and c-style casts is very
4 // different in C vs C++. This file is intended to test the C behavior. 11 // different in C vs C++. This file is intended to test the C behavior.
5 12
6 // TODO: add tests covering the rest of the code in 13 // TODO: add tests covering the rest of the code in