aboutsummaryrefslogtreecommitdiff
path: root/final/ABI-Testsuite/test/s2_9/builtin_unsigned_char.xpp
blob: 2c736dfe85c7244c99f3116fdcd86d59863df3f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// This file is distributed under the University of Illinois Open Source License.
// See LICENSE.TXT for details.
// RUN: cxx_compiler -c cxx_rtti cxx_exceptions %s -o %t.o
// RUN: linker %t.o -o %t%exeext
// RUN: bindump %t.o| FileCheck %s

// Test run-time library includes support for builtin type "unsigned char"

unsigned char global_var = 'a';
unsigned char const *global_ptr;

// CHECK-DAG: _ZTIh
void foo1() { throw global_var; }
// CHECK-DAG: _ZTIPh
void foo2() { throw &global_var; }
// CHECK-DAG: _ZTIPKh
void foo3() { throw global_ptr; }

int main(int argc, char *argv[]) {
  return 0;
}