Test case for annotate builtin.
authorTanya Lattner <tonic@nondot.org>
Tue, 12 Feb 2008 07:46:33 +0000 (07:46 +0000)
committerTanya Lattner <tonic@nondot.org>
Tue, 12 Feb 2008 07:46:33 +0000 (07:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46999 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2008-02-11-AnnotateBuiltin.c [new file with mode: 0644]

diff --git a/test/CFrontend/2008-02-11-AnnotateBuiltin.c b/test/CFrontend/2008-02-11-AnnotateBuiltin.c
new file mode 100644 (file)
index 0000000..32bc7a8
--- /dev/null
@@ -0,0 +1,7 @@
+// RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | grep llvm.annotation
+
+int main() {
+  int x = 0;
+  return __builtin_annotation(x, "annotate");
+}
+