gnuradio-core: add ASSERTs for proper alignment
[debian/gnuradio] / gnuradio-core / src / lib / filter / qa_gr_fir_fff.cc
index 60ba760973375af687d3de78fe41ba2c8169682d..74de6dac1c98fefd6076d3411bdce3d32b8f6d0e 100644 (file)
@@ -148,9 +148,11 @@ test_random_io (fir_maker_t maker)
   const int    INPUT_LEN       = MAX_TAPS + OUTPUT_LEN;
 
   i_type        input_raw[INPUT_LEN + 4*16/sizeof(i_type)];
+  CPPUNIT_ASSERT(((intptr_t) input_raw & 0x3) == 0);
   memset(input_raw, 0, sizeof(input_raw));
   i_type       *input = &input_raw[2*16/sizeof(i_type)];
 
+
   o_type       expected_output[OUTPUT_LEN];
   o_type       actual_output[OUTPUT_LEN];
   tap_type     taps[MAX_TAPS];