http://llvm.org/bugs/show_bug.cgi?id=6521

           Summary: decl not getting marked used
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


struct Foo {
  static int count() __attribute__((constructor)) {
    static int cnt = 0;
    return ++cnt;
  }
};

int main() {
  return Foo::count();
}


This isn't outputting the body of Foo::count for some reason, and isn't
honoring the attribute ctor either.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to