Sam Weinig | ce757a7 | 2010-01-16 21:21:01 +0000 | [diff] [blame^] | 1 | // Test this without pch. |
| 2 | // RUN: %clang_cc1 -include %S/cxx_exprs.h -fsyntax-only -verify %s |
| 3 | |
| 4 | // Test with pch. |
| 5 | // RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx_exprs.h |
| 6 | // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s |
| 7 | |
| 8 | int integer; |
| 9 | double floating; |
| 10 | char character; |
| 11 | |
| 12 | // CXXStaticCastExpr |
| 13 | static_cast_result void_ptr = &integer; |
| 14 | |
| 15 | // CXXDynamicCastExpr |
| 16 | Derived *d; |
| 17 | dynamic_cast_result derived_ptr = d; |
| 18 | |
| 19 | // CXXReinterpretCastExpr |
| 20 | reinterpret_cast_result void_ptr2 = &integer; |
| 21 | |
| 22 | // CXXConstCastExpr |
| 23 | const_cast_result char_ptr = &character; |
| 24 | |
| 25 | // CXXFunctionalCastExpr |
| 26 | functional_cast_result *double_ptr = &floating; |