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 // MIPS uses the same representation of method pointers as ARM. | 9 // MIPS uses the same representation of method pointers as ARM. |
10 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=mips-unknown-linux-gnu | FileCheck
-check-prefix GLOBAL-ARM %s | 10 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=mips-unknown-linux-gnu | FileCheck
-check-prefix GLOBAL-ARM %s |
11 // Emscripten uses the same representation of method pointers as ARM. | |
12 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=asmjs-unknown-emscripten | FileChe
ck -check-prefix GLOBAL-ARM %s | |
13 | 11 |
14 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(); }; |
15 struct B { int b; virtual void g(); }; | 13 struct B { int b; virtual void g(); }; |
16 struct C : B, A { }; | 14 struct C : B, A { }; |
17 | 15 |
18 void (A::*pa)(); | 16 void (A::*pa)(); |
19 void (A::*volatile vpa)(); | 17 void (A::*volatile vpa)(); |
20 void (B::*pb)(); | 18 void (B::*pb)(); |
21 void (C::*pc)(); | 19 void (C::*pc)(); |
22 | 20 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 namespace test11 { | 285 namespace test11 { |
288 struct A { virtual void a(); }; | 286 struct A { virtual void a(); }; |
289 struct B : A {}; | 287 struct B : A {}; |
290 struct C : B { virtual void a(); }; | 288 struct C : B { virtual void a(); }; |
291 void (C::*x)() = &C::a; | 289 void (C::*x)() = &C::a; |
292 | 290 |
293 // GLOBAL-LP64: @_ZN6test111xE = global { i64, i64 } { i64 1, i64 0 } | 291 // GLOBAL-LP64: @_ZN6test111xE = global { i64, i64 } { i64 1, i64 0 } |
294 // GLOBAL-LP32: @_ZN6test111xE = global { i32, i32 } { i32 1, i32 0 } | 292 // GLOBAL-LP32: @_ZN6test111xE = global { i32, i32 } { i32 1, i32 0 } |
295 // GLOBAL-ARM: @_ZN6test111xE = global { i32, i32 } { i32 0, i32 1 } | 293 // GLOBAL-ARM: @_ZN6test111xE = global { i32, i32 } { i32 0, i32 1 } |
296 } | 294 } |
OLD | NEW |