Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 1 | // RUN: %clangxx_asan -coverage -O0 %s -o %t |
Pirama Arumuga Nainar | cdce50b | 2015-07-01 12:26:56 -0700 | [diff] [blame] | 2 | // RUN: env ASAN_OPTIONS=$ASAN_OPTIONS:check_initialization_order=1 %run %t 2>&1 | FileCheck %s |
Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 3 | // XFAIL: android |
4 | #include <stdio.h> | ||||
5 | int foo() { return 1; } | ||||
6 | int XXX = foo(); | ||||
7 | int main() { | ||||
8 | printf("PASS\n"); | ||||
9 | // CHECK: PASS | ||||
10 | } |