diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-05-29 20:38:28 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-05-29 20:38:28 +0000 |
| commit | 7de5966d76fea50cdf1ded7ccd2677594a12ef36 (patch) | |
| tree | a823b08ce247d4b9447e707117392e469ee0936f /clang/test/SemaCXX/convert-to-bool.cpp | |
| parent | 006459ecd4ab07c8a1daa2d005533649261f8c4a (diff) | |
| download | bcm5719-llvm-7de5966d76fea50cdf1ded7ccd2677594a12ef36.tar.gz bcm5719-llvm-7de5966d76fea50cdf1ded7ccd2677594a12ef36.zip | |
Create a new PrintingPolicy class, which we pass down through the AST
printing logic to help customize the output. For now, we use this
rather than a special flag to suppress the "struct" when printing
"struct X" and to print the Boolean type as "bool" in C++ but "_Bool"
in C.
llvm-svn: 72590
Diffstat (limited to 'clang/test/SemaCXX/convert-to-bool.cpp')
| -rw-r--r-- | clang/test/SemaCXX/convert-to-bool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/convert-to-bool.cpp b/clang/test/SemaCXX/convert-to-bool.cpp index 638afd0555b..937b2729d1c 100644 --- a/clang/test/SemaCXX/convert-to-bool.cpp +++ b/clang/test/SemaCXX/convert-to-bool.cpp @@ -44,7 +44,7 @@ struct ExplicitConvToRef { void test_explicit_bool(ExplicitConvToBool ecb) { bool b1(ecb); // okay - bool b2 = ecb; // expected-error{{incompatible type initializing 'struct ExplicitConvToBool', expected '_Bool'}} + bool b2 = ecb; // expected-error{{incompatible type initializing 'struct ExplicitConvToBool', expected 'bool'}} accepts_bool(ecb); // expected-error{{no matching function for call to}} } |

