summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/pragma-init_seg.cpp
blob: 7356c52aa395f6cde12fc8616de7a6cb7adf0ec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: not %clang_cc1 %s -triple=i686-pc-win32 -fms-extensions -emit-llvm-only 2>&1 | FileCheck %s

// Reduced from WebKit.

// FIXME: Implement this pragma and test the codegen.  We probably want to
// completely skip @llvm.global_ctors and just create global function pointers
// to the initializer with the right section.

// CHECK: '#pragma init_seg' not implemented
#pragma init_seg(".unwantedstaticinits")
struct A {
  A();
  ~A();
  int a;
};
A a;
OpenPOWER on IntegriCloud