diff options
author | Mike Stump <mrs@apple.com> | 2009-09-09 15:08:12 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-09-09 15:08:12 +0000 |
commit | 1eb4433ac451dc16f4133a88af2d002ac26c58ef (patch) | |
tree | 07065b80cb7787bb7b9ffcb985196007a57e86f7 /test/CodeGenCXX/constructor-conversion.cpp | |
parent | 79d39f92590cf2e91bf81486b02cd1156d13ca54 (diff) |
Remove tabs, and whitespace cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/constructor-conversion.cpp')
-rw-r--r-- | test/CodeGenCXX/constructor-conversion.cpp | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/test/CodeGenCXX/constructor-conversion.cpp b/test/CodeGenCXX/constructor-conversion.cpp index 3fafe61769..980b230118 100644 --- a/test/CodeGenCXX/constructor-conversion.cpp +++ b/test/CodeGenCXX/constructor-conversion.cpp @@ -8,16 +8,16 @@ extern "C" int printf(...); class X { // ... public: - X(int) : iX(2), fX(2.3) , name("HELLO\n") { } - - X(const char* arg, int ix=0) { iX = ix; fX = 6.0; name = arg+ix; } - X(): iX(100), fX(1.2) {} - int iX; - float fX; - const char *name; - void pr(void) { - printf("iX = %d fX = %f name = %s\n", iX, fX, name); - } + X(int) : iX(2), fX(2.3) , name("HELLO\n") { } + + X(const char* arg, int ix=0) { iX = ix; fX = 6.0; name = arg+ix; } + X(): iX(100), fX(1.2) {} + int iX; + float fX; + const char *name; + void pr(void) { + printf("iX = %d fX = %f name = %s\n", iX, fX, name); + } }; void g(X arg) { @@ -25,8 +25,7 @@ void g(X arg) { } void f(X arg) { - - X a = 1; // a = X(1) + X a = 1; // a = X(1) a.pr(); @@ -35,18 +34,16 @@ void f(X arg) { b.pr(); - a = 2; // a = X(2) + a = 2; // a = X(2) a.pr(); - } -int main() -{ - X x; - f(x); - g(3); // g(X(3)) +int main() { + X x; + f(x); + g(3); // g(X(3)) } // CHECK-LP64: call __ZN1XC1Ei |