clang/test/C/C99/n809_3.c
raw| 1 | // RUN: %clang_cc1 -emit-llvm -std=c99 %s -o - | FileCheck %s |
| 2 | |
| 3 | // Demonstrate that statics are properly zero initialized. |
| 4 | static _Complex float f_global; |
| 5 | void func(void) { |
| 6 | static _Complex double d_local; |
| 7 | d_local = f_global; |
| 8 | } |
| 9 | |
| 10 | // CHECK-DAG: @func.d_local = internal global { double, double } zeroinitializer |
| 11 | // CHECK-DAG: @f_global = internal global { float, float } zeroinitializer |
| 12 |