]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - packages/Python/lldbsuite/test/functionalities/data-formatter/vector-types/main.cpp
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / packages / Python / lldbsuite / test / functionalities / data-formatter / vector-types / main.cpp
1 //===-- main.cpp ------------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 typedef float float4 __attribute__((ext_vector_type(4)));
11 typedef  unsigned char vec __attribute__((ext_vector_type(16)));
12
13 int main() {
14     float4 f4 = {1.25, 1.25, 2.50, 2.50};
15     vec v = (vec)f4;
16     return 0; // break here
17 }