brintos

brintos / llvm-project-archived public Read only

0
0
Text · 319 B · 6d51f24 Raw
13 lines · cpp
1// RUN: %clang_cc1 %s -triple=i686-linux-gnu -emit-llvm -o - | FileCheck %s2 3struct S {4  mutable int n;5};6int f() {7  // The purpose of this test is to ensure that this variable is a global8  // not a constant.9  // CHECK: @_ZZ1fvE1s = internal global {{.*}} { i32 12 }10  static const S s = { 12 };11  return ++s.n;12}13