exprs.c revision db600c330a37b1c3ab4533310729910ee188f900
1// Test this without pch. 2// RUN: clang-cc -fblocks -include %S/exprs.h -fsyntax-only -verify %s 3 4// Test with pch. 5// RUN: clang-cc -emit-pch -fblocks -o %t %S/exprs.h && 6// RUN: clang-cc -fblocks -include-pch %t -fsyntax-only -verify %s 7 8int integer; 9long long_integer; 10double floating; 11 12// DeclRefExpr 13int_decl_ref *int_ptr1 = &integer; 14enum_decl_ref *enum_ptr1 = &integer; 15 16// IntegerLiteral 17integer_literal *int_ptr2 = &integer; 18long_literal *long_ptr1 = &long_integer; 19 20// FloatingLiteral + ParenExpr 21floating_literal *double_ptr = &floating; 22 23// CharacterLiteral 24char_literal *int_ptr3 = &integer; 25 26// BinaryOperator 27add_result *int_ptr4 = &integer; 28 29// CStyleCastExpr 30void_ptr vp1 = &integer; 31