Fix TestConcurrentEvents to behave nicely with GCC 4.8
- newer gcc generates additional debuginfo for function exit (stack object desctruction) which was causing tests to fail
- work-around consists of not declaring any stack objects in main()



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@187389 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/functionalities/thread/concurrent_events/main.cpp b/test/functionalities/thread/concurrent_events/main.cpp
index db00155..83233d5 100644
--- a/test/functionalities/thread/concurrent_events/main.cpp
+++ b/test/functionalities/thread/concurrent_events/main.cpp
@@ -132,7 +132,7 @@
     }
 }
 
-int main ()
+int dotest()
 {
     g_watchme = 0;
 
@@ -188,5 +188,13 @@
     for(thread_iterator t = threads.begin(); t != threads.end(); ++t)
         pthread_join(*t, 0);
 
+    return 0;
+}
+
+int main ()
+{
+    dotest();
     return 0; // Break here and verify one thread is active.
 }
+
+