StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git] / test / SemaObjCXX / const-cast.mm
blob933fd47de7caa7f240349d296d97e54b29b781f0
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 @class Foo;
5 void test() {
6     const Foo *foo1 = 0;
7     Foo *foo2 = foo1; // expected-error {{cannot initialize}}
10 void test1() {
11     const Foo *foo1 = 0;
12     Foo *foo2 = const_cast<Foo*>(foo1);