//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

bool bar(int const *foo) {
  return foo != 0; // Set break point at this line.
}

int main() {
  int foo[] = {1,2,3};
  return bar(foo);
}

//===-- 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[] = {1,2,3};
  bar(foo);
}

--- 
+++ 
@@ -7,11 +7,11 @@
 //
 //===----------------------------------------------------------------------===//
 
-void bar(int const *foo) {
-  __builtin_trap(); // Set break point at this line.
+bool bar(int const *foo) {
+  return foo != 0; // Set break point at this line.
 }
 
 int main() {
   int foo[] = {1,2,3};
-  bar(foo);
+  return bar(foo);
 }
Fix rdar-13338477 test-case for Linux.
- Using __builtin_trap confuses the stack unwinder
- __builtin_trap specific test will be added shortly



git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@181441 91177308-0d34-0410-b5e6-96231b3b80d8
