summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/member-pointer-type-convert.cpp
blob: 2970a2e39e3f5f83bab1f680c068f3ef771f8040 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s

struct A;
typedef int A::*param_t;
struct {
  const char *name;
  param_t par;
} *ptr;
void test_ptr() { (void) ptr; } // forced use

// CHECK: type { i8*, {{i..}} }