Eric Christopher | 690c2d1 | 2010-12-02 02:13:27 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-DEFAULT |
2 | // RUN: %clang_cc1 %s -fno-common -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-NOCOMMON | ||||
Daniel Dunbar | adf511c | 2009-03-26 16:37:00 +0000 | [diff] [blame] | 3 | |
Eric Christopher | 690c2d1 | 2010-12-02 02:13:27 +0000 | [diff] [blame^] | 4 | // CHECK-DEFAULT: @x = common global |
5 | // CHECK-NOCOMMON: @x = global | ||||
Daniel Dunbar | adf511c | 2009-03-26 16:37:00 +0000 | [diff] [blame] | 6 | int x; |