]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenCXX/fp16-mangle.cpp
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / CodeGenCXX / fp16-mangle.cpp
1 // RUN: %clang_cc1 -emit-llvm -o - -triple arm-none-linux-gnueabi %s | FileCheck %s
2
3 // CHECK: @_ZN1SIDhDhE1iE = global i32 3
4 template <typename T, typename U> struct S { static int i; };
5 template <> int S<__fp16, __fp16>::i = 3;
6
7 // CHECK-LABEL: define void @_Z1fPDh(i16* %x)
8 void f (__fp16 *x) { }
9
10 // CHECK-LABEL: define void @_Z1gPDhS_(i16* %x, i16* %y)
11 void g (__fp16 *x, __fp16 *y) { }
12