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/copy-constructor-synthesis.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/copy-constructor-synthesis.cpp')
-rw-r--r-- | test/CodeGenCXX/copy-constructor-synthesis.cpp | 79 |
1 files changed, 40 insertions, 39 deletions
diff --git a/test/CodeGenCXX/copy-constructor-synthesis.cpp b/test/CodeGenCXX/copy-constructor-synthesis.cpp index 2fe196d694..37550c4219 100644 --- a/test/CodeGenCXX/copy-constructor-synthesis.cpp +++ b/test/CodeGenCXX/copy-constructor-synthesis.cpp @@ -26,35 +26,36 @@ struct P { struct X : M, N, P { // ... - X() : f1(1.0), d1(2.0), i1(3), name("HELLO"), bf1(0xff), bf2(0xabcd), - au_i1(1234), au1_4("MASKED") {} - P p0; - void pr() { printf("iM = %d iN = %d, m1.iM = %d\n", iM, iN, m1.iM); - printf("im = %d p0.iP = %d, p1.iP = %d\n", iP, p0.iP, p1.iP); - printf("f1 = %f d1 = %f i1 = %d name(%s) \n", f1, d1, i1, name); - printf("bf1 = %x bf2 = %x\n", bf1, bf2); - printf("au_i2 = %d\n", au_i2); - printf("au1_1 = %s\n", au1_1); - } - M m1; - P p1; - float f1; - double d1; - int i1; - const char *name; - unsigned bf1 : 8; - unsigned bf2 : 16; + X() : f1(1.0), d1(2.0), i1(3), name("HELLO"), bf1(0xff), bf2(0xabcd), + au_i1(1234), au1_4("MASKED") {} + P p0; + void pr() { + printf("iM = %d iN = %d, m1.iM = %d\n", iM, iN, m1.iM); + printf("im = %d p0.iP = %d, p1.iP = %d\n", iP, p0.iP, p1.iP); + printf("f1 = %f d1 = %f i1 = %d name(%s) \n", f1, d1, i1, name); + printf("bf1 = %x bf2 = %x\n", bf1, bf2); + printf("au_i2 = %d\n", au_i2); + printf("au1_1 = %s\n", au1_1); + } + M m1; + P p1; + float f1; + double d1; + int i1; + const char *name; + unsigned bf1 : 8; + unsigned bf2 : 16; - union { - int au_i1; - int au_i2; - }; - union { - const char * au1_1; - float au1_2; - int au1_3; - const char * au1_4; - }; + union { + int au_i1; + int au_i2; + }; + union { + const char * au1_1; + float au1_2; + int au1_3; + const char * au1_4; + }; }; static int ix = 1; @@ -87,19 +88,19 @@ struct XM { I ARR_I[3][2]; }; -int main() -{ - X a; - X b(a); - b.pr(); - X x; - X c(x); - c.pr(); +int main() { + X a; + X b(a); + b.pr(); + X x; + X c(x); + c.pr(); - XM m0; - XM m1 = m0; - m1.pr(); + XM m0; + XM m1 = m0; + m1.pr(); } + // CHECK-LP64: .globl __ZN1XC1ERK1X // CHECK-LP64: .weak_definition __ZN1XC1ERK1X // CHECK-LP64: __ZN1XC1ERK1X: |