When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / FrontendC / 2008-11-11-AnnotateStructFieldAttribute.c
blob8af59d54f751d6a19bf96cde5ddc3aca00a79555
1 // RUN: %llvmgcc -S %s -o - | grep llvm.ptr.annotation | count 3
3 #include <stdio.h>
5 /* Struct with element X being annotated */
6 struct foo {
7 int X __attribute__((annotate("StructAnnotation")));
8 int Y;
9 int Z;
13 void test(struct foo *F) {
14 F->X = 42;
15 F->Z = 1;
16 F->Y = F->X;