Add Bazel support for queue files.

Change-Id: I69921edb654765364bc1333b16fd4583446fd88c
diff --git a/build_tests/BUILD b/build_tests/BUILD
index 75198fd..cae87f0 100644
--- a/build_tests/BUILD
+++ b/build_tests/BUILD
@@ -1,4 +1,5 @@
 load('/tools/build_rules/ruby', 'ruby_binary')
+load('/aos/build/queues', 'queue_library')
 
 cc_test(
   name = 'gflags_build_test',
@@ -32,3 +33,21 @@
   ],
   size = 'small',
 )
+
+queue_library(
+  name = 'queue_library',
+  srcs = [
+    'queue.q',
+  ],
+)
+
+cc_test(
+  name = 'queue_build_test',
+  srcs = [
+    'queue.cc',
+  ],
+  deps = [
+    ':queue_library',
+  ],
+  size = 'small',
+)
diff --git a/build_tests/queue.cc b/build_tests/queue.cc
new file mode 100644
index 0000000..3be667e
--- /dev/null
+++ b/build_tests/queue.cc
@@ -0,0 +1,7 @@
+#include "build_tests/queue.q.h"
+
+int main() {
+  ::build_tests::TestStruct s;
+  s.field = 971;
+  return (s.field == 971) ? 0 : 1;
+}
diff --git a/build_tests/queue.q b/build_tests/queue.q
new file mode 100644
index 0000000..df1b7db
--- /dev/null
+++ b/build_tests/queue.q
@@ -0,0 +1,5 @@
+package build_tests;
+
+struct TestStruct {
+  int32_t field;
+};