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 | 11289f42807681deee5551c40fe1a4282d54c86a (patch) | |
tree | 97ed01bf613ec21a6dc3d53097c925fc6353c9f9 /clang/test/CodeGenCXX/copy-constructor-elim.cpp | |
parent | 16ad903fcf596916257acef39618545de331db8f (diff) | |
download | bcm5719-llvm-11289f42807681deee5551c40fe1a4282d54c86a.tar.gz bcm5719-llvm-11289f42807681deee5551c40fe1a4282d54c86a.zip |
Remove tabs, and whitespace cleanups.
llvm-svn: 81346
Diffstat (limited to 'clang/test/CodeGenCXX/copy-constructor-elim.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/copy-constructor-elim.cpp | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/clang/test/CodeGenCXX/copy-constructor-elim.cpp b/clang/test/CodeGenCXX/copy-constructor-elim.cpp index 2a6be90bc6b..daef92cdb76 100644 --- a/clang/test/CodeGenCXX/copy-constructor-elim.cpp +++ b/clang/test/CodeGenCXX/copy-constructor-elim.cpp @@ -7,9 +7,9 @@ extern "C" int printf(...); struct C { - C() : iC(6) {printf("C()\n"); } - C(const C& c) { printf("C(const C& c)\n"); } - int iC; + C() : iC(6) {printf("C()\n"); } + C(const C& c) { printf("C(const C& c)\n"); } + int iC; }; C foo() { @@ -18,10 +18,10 @@ C foo() { class X { // ... public: - X(int) {} - X(const X&, int i = 1, int j = 2, C c = foo()) { - printf("X(const X&, %d, %d, %d)\n", i, j, c.iC); - } + X(int) {} + X(const X&, int i = 1, int j = 2, C c = foo()) { + printf("X(const X&, %d, %d, %d)\n", i, j, c.iC); + } }; @@ -33,12 +33,11 @@ S::S() { printf("S()\n"); } void Call(S) {}; -int main() -{ - X a(1); - X b(a, 2); - X c = b; - X d(a, 5, 6); - S s; - Call(s); +int main() { + X a(1); + X b(a, 2); + X c = b; + X d(a, 5, 6); + S s; + Call(s); } |