OLD | NEW |
1 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-unknown-unknown | FileCheck
-check-prefix CODE-LP64 %s | 1 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-unknown-unknown | FileCheck
-check-prefix CODE-LP64 %s |
2 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=i386-unknown-unknown | FileCheck -
check-prefix CODE-LP32 %s | 2 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=i386-unknown-unknown | FileCheck -
check-prefix CODE-LP32 %s |
3 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-unknown-unknown | FileCheck
-check-prefix GLOBAL-LP64 %s | 3 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-unknown-unknown | FileCheck
-check-prefix GLOBAL-LP64 %s |
4 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=i386-unknown-unknown | FileCheck -
check-prefix GLOBAL-LP32 %s | 4 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=i386-unknown-unknown | FileCheck -
check-prefix GLOBAL-LP32 %s |
5 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=armv7-unknown-unknown | FileCheck
-check-prefix GLOBAL-ARM %s | 5 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=armv7-unknown-unknown | FileCheck
-check-prefix GLOBAL-ARM %s |
6 | 6 |
7 // PNaCl uses the same representation of method pointers as ARM. | 7 // PNaCl uses the same representation of method pointers as ARM. |
8 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=le32-unknown-nacl | FileCheck -che
ck-prefix GLOBAL-ARM %s | 8 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=le32-unknown-nacl | FileCheck -che
ck-prefix GLOBAL-ARM %s |
| 9 // Emscripten uses the same representation of method pointers as ARM. |
| 10 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=asmjs-unknown-emscripten | FileChe
ck -check-prefix GLOBAL-ARM %s |
9 | 11 |
10 struct A { int a; void f(); virtual void vf1(); virtual void vf2(); }; | 12 struct A { int a; void f(); virtual void vf1(); virtual void vf2(); }; |
11 struct B { int b; virtual void g(); }; | 13 struct B { int b; virtual void g(); }; |
12 struct C : B, A { }; | 14 struct C : B, A { }; |
13 | 15 |
14 void (A::*pa)(); | 16 void (A::*pa)(); |
15 void (A::*volatile vpa)(); | 17 void (A::*volatile vpa)(); |
16 void (B::*pb)(); | 18 void (B::*pb)(); |
17 void (C::*pc)(); | 19 void (C::*pc)(); |
18 | 20 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 namespace test11 { | 285 namespace test11 { |
284 struct A { virtual void a(); }; | 286 struct A { virtual void a(); }; |
285 struct B : A {}; | 287 struct B : A {}; |
286 struct C : B { virtual void a(); }; | 288 struct C : B { virtual void a(); }; |
287 void (C::*x)() = &C::a; | 289 void (C::*x)() = &C::a; |
288 | 290 |
289 // GLOBAL-LP64: @_ZN6test111xE = global { i64, i64 } { i64 1, i64 0 } | 291 // GLOBAL-LP64: @_ZN6test111xE = global { i64, i64 } { i64 1, i64 0 } |
290 // GLOBAL-LP32: @_ZN6test111xE = global { i32, i32 } { i32 1, i32 0 } | 292 // GLOBAL-LP32: @_ZN6test111xE = global { i32, i32 } { i32 1, i32 0 } |
291 // GLOBAL-ARM: @_ZN6test111xE = global { i32, i32 } { i32 0, i32 1 } | 293 // GLOBAL-ARM: @_ZN6test111xE = global { i32, i32 } { i32 0, i32 1 } |
292 } | 294 } |
OLD | NEW |