summaryrefslogtreecommitdiffstats
path: root/packages/Python/lldbsuite/test/lang/cpp/frame-var-anon-unions/main.cpp
blob: 494b846336ff7beab48acd171c75e64ad87739d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

int main() {
  union {
    int i;
    char c;
  };
  struct {
    int x;
    char y;
    short z;
  } s{3,'B',14};
  i = 0xFFFFFF00;
  c = 'A';
  return c; // break here
}
OpenPOWER on IntegriCloud