[RISCV] Add shrinkwrap test cases showing gaps in current impl
[llvm-project.git] / clang / test / SemaCXX / member-pointer-size.cpp
blob8b595237fcab7addc79998745012834ccd8fcc37
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -fsyntax-only -verify
2 // RUN: %clang_cc1 -triple i686-unknown-unknown %s -fsyntax-only -verify
3 // expected-no-diagnostics
4 #include <stddef.h>
6 struct A;
8 void f() {
9 int A::*dataMember;
11 int (A::*memberFunction)();
13 typedef int assert1[sizeof(dataMember) == sizeof(ptrdiff_t) ? 1 : -1];
14 typedef int assert2[sizeof(memberFunction) == sizeof(ptrdiff_t) * 2 ? 1 : -1];