aboutsummaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/linux/builtin_trap/main.cpp
blob: 84156ef2ac4f096561cad8b9a6b81ed003d05d12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

void bar(int const *foo) {
  __builtin_trap(); // Set break point at this line.
}

int main() {
  int foo = 5;
  bar(&foo);
}