blob: d3473668a7f4ec43fcb7d9483d65cb7a8342ad62 [file] [log] [blame]
John McCall2a7b09d2012-05-01 17:32:20 +00001// 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
4struct A;
5typedef int A::*param_t;
6struct {
7 const char *name;
8 param_t par;
9} *ptr;
10void test_ptr() { (void) ptr; } // forced use
11
12// GLOBAL-LP64: type { i8*, i64 }
13// GLOBAL-LP32: type { i8*, i32 }