summaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/functionalities/data-formatter/typedef_array/main.cpp
blob: cb6dc18655f20a1b3030d6e0d0014accebcc5566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//===-- main.cpp --------------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
typedef int Foo;

int main() {
    // CHECK: (Foo [3]) array = {
    // CHECK-NEXT: (Foo) [0] = 1
    // CHECK-NEXT: (Foo) [1] = 2
    // CHECK-NEXT: (Foo) [2] = 3
    // CHECK-NEXT: }
    Foo array[3] = {1,2,3};
    return 0; //% self.filecheck("frame variable array --show-types --", 'main.cpp')
}