John McCall | 2a7b09d | 2012-05-01 17:32:20 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-unknown-unknown | FileCheck -check-prefix GLOBAL-LP64 %s |
2 | // RUN: %clang_cc1 %s -emit-llvm -o - -triple=armv7-unknown-unknown | FileCheck -check-prefix GLOBAL-LP32 %s | ||||
3 | |||||
4 | struct A; | ||||
5 | typedef int A::*param_t; | ||||
6 | struct { | ||||
7 | const char *name; | ||||
8 | param_t par; | ||||
9 | } *ptr; | ||||
10 | void test_ptr() { (void) ptr; } // forced use | ||||
11 | |||||
12 | // GLOBAL-LP64: type { i8*, i64 } | ||||
13 | // GLOBAL-LP32: type { i8*, i32 } |