aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/chkp-thunk-comdat-2.cc
blob: 2b1abe9b67d6c8034f1b7e444a56b967dbf9e058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* { dg-do compile } */
/* { dg-options "-O2 -fcheck-pointer-bounds -mmpx" } */

class c1
{
public:
  virtual int test1 (const char *);
};

class c2
{
public:
  int test2 (const char *);
};

int
c1::test1 (const char *)
{
  return 0;
}

int
c2::test2 (const char *)
{
  return 0;
}