Switch gflags to portability/GFlags.h
[folly.git] / folly / experimental / symbolizer / test / Crash.cpp
index 3a82b1e71557226f79d0003b0c4c48400b02d7aa..a84d0763f7f766f5565c56af239e2aeb00422f16 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2016 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,6 +18,6 @@
 
 int main() {
   folly::symbolizer::installFatalSignalHandler();
-  *(int*) nullptr = 1;
+  __builtin_trap();
   return 0;
 }